You shouldnt add them to the gac as they are native libraries. The DllImport will follow a documented route to search for dynamic libraries, IIRC it starts in the executing program folder (that will be your .exe or iis app), and then probe using some conventions until it gets to windows/system.
So, either add the libzmq.dll to your bin folder or use Context.EnsureZmqLibrary() before you create a context. On Wed, Dec 10, 2014 at 9:57 AM, Charles Williams <[email protected]> wrote: > Hello! > We have tried VisualStudio 2010, 2012, and 2013 with CastleZMQ 4.0.0. > We tried Win7, Win8, and Win 8.1. > We have also setup test apps with .NET 4, .NET 4.5, and .NET 4.5.1. > > We pulled down the project from GitHub and was able to compile without any > errors. > > But, any code that uses ZMQ, even the unit tests that come with the > project/solution, all fail with: > A first chance exception of type 'System.DllNotFoundException' occurred > in Castle.Zmq.dll > > We know about the 32-bit/64-bit libzmq.dll files, and we are on a full > 64-bit setup with Win8. > It does not appear that anything in Windows is picking up the libzmq.dll > file. > We cannot add it to the GAC or make it a reference in VisualStudio. > > Any ideas on what to check would be helpful. > > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/castle-project-users. > For more options, visit https://groups.google.com/d/optout. -- Cheers, hammett http://www.d-collab.com/ http://www.hammettblog.com/ -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/castle-project-users. For more options, visit https://groups.google.com/d/optout.
