I just generated a 32-bit dll from a library and am trying to use it with my windows based form application in C# (debug – x86). I added the dll file as a reference and now when I run the code I get the following error
System.IO.FileNotFoundException was unhandled
Message=Could not load file or assembly 'org.apache.qpid.messaging.dll' or one of its dependencies. The specified module could not be found.
Source=QpidRx_CSharp
FileName=org.apache.qpid.messaging.dll
FusionLog=""
StackTrace:
at QpidRx_CSharp.Program.Main()
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Any suggetsions on how I might resolve this issue ?
Have a look at the dll with the (free and excellent) ‘DependencyWalker’ to see what’s missing (since the error seems to indicate that’s the exact problem here: you are not fulfilling all needed dependencies).