>It does work OK for me locally. However, for our QA server it returns
>
>ww_local.dll generated an exception..Unable to load DLL 'C:\Program Files (x86)\Siriusware\Pool\ww_local.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
>
>Do you know what may be wrong - some dependent dlls are missing or it may be something else?
>
>Also, I think I tried to use DllImport without specifying the exact path and got similar exception. But I don't want to use hardcoded path and as I understood I can not use dynamic path here.
>
>What would be the best workaround?
>
>UPDATE. I re-tested by placing all dlls into bin/debug folder. It didn't work for me. Looks like I do need to hardcode the path?
>
>UPDATE 2. After placing all dlls into debug folder for the Test project I was able to debug my test OK. So, I assume it should work fine without specifying the paths. I'm going to re-test it.
>
Think it's explained here
https://stackoverflow.com/questions/8836093/how-can-i-specify-a-dllimport-path-at-runtime
Gregory