[zeromq-dev] UnmanagedLibrary[libzmq] Unable to load binary "libzmq" from folders

Mortazavi yashar.mortazavi at gmail.com
Mon May 23 05:09:15 CEST 2016


I am using zeromq library in a c# application. In development pc everything is ok and works like a charm. 

In target pc I get the following exception:


UnmanagedLibrary[libzmq] Unable to load binary "libzmq" from folders

          C:\Program Files\My Test App\i386\libzmq.dll

          C:\Program Files\ My Test App \x86\libzmq.dll


Also unable to load binary from EmbeddedResource "ZeroMQ.libzmq.i386.dll", from temporary path "C:\Documents and Settings\LocalService\Local Settings\Temp\ZeroMQ.libzmq.i386.dll". See Trace output for more information.

Base Error Source: 


Base StackTrace: 

   at ZeroMQ.lib.Platform.Win32.LoadUnmanagedLibrary(String libraryName)

   at ZeroMQ.lib.zmq..cctor()


Development environment is VS2010 .NET 4 on a 64 bit windows 10 PC.

Platform Target X86


Target PC is windows 2003 server 32 bit

Both C:\Program Files\My Test App\i386\libzmq.dll and C:\Program Files\ My Test App \x86\libzmq.dll exist in app root folder and valid


Based on documents I found online, I did the followings but error persists:

Copying libsodium.dll and libzmq.dll to system32 folder

Changing Platform Target Any CPU/X86

Installing C++ 2010 Redistributable Package


What I have missed? I appreciate your kind help.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160523/6567897c/attachment.htm>

More information about the zeromq-dev mailing list