Rebuild the org.apache.qpid.messaging.dll in 32 bit mode? On 10/17/12 5:05 PM, "Rajesh Khan" <[email protected]> wrote:
>I built my org.apache.qpid.messaging.dll in VS2010 64 bit mode. Now when I >am adding it as a reference to my C# project x86. I get the following >error. >Any suggestions on how I could resolve this issue ? > >System.BadImageFormatException was unhandled > Message=Could not load file or assembly 'org.apache.qpid.messaging, >Version=1.0.4673.24043, Culture=neutral, PublicKeyToken=7e57166074abee8c' >or one of its dependencies. An attempt was made to load a program with an >incorrect format. > Source=QpidRx_CSharp > FileName=org.apache.qpid.messaging, Version=1.0.4673.24043, >Culture=neutral, PublicKeyToken=7e57166074abee8c > FusionLog==== Pre-bind state information === >LOG: User = Adam-PC\Adam >LOG: DisplayName = org.apache.qpid.messaging, Version=1.0.4673.24043, >Culture=neutral, PublicKeyToken=7e57166074abee8c > (Fully-specified) >LOG: Appbase = >file:///D:/qpid-0.18/TestProject/QpidRx_CSharp/QpidRx_CSharp/bin/Debug/ >LOG: Initial PrivatePath = NULL >Calling assembly : QpidRx_CSharp, Version=1.0.0.0, Culture=neutral, >PublicKeyToken=null. >=== >LOG: This bind starts in default load context. >LOG: No application configuration file found. >LOG: Using host configuration file: >LOG: Using machine configuration file from >C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config. >LOG: Post-policy reference: org.apache.qpid.messaging, >Version=1.0.4673.24043, Culture=neutral, PublicKeyToken=7e57166074abee8c >LOG: Attempting download of new URL >file:///D:/qpid-0.18/TestProject/QpidRx_CSharp/QpidRx_CSharp/bin/Debug/org >.apache.qpid.messaging.DLL. >ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing >terminated. > > 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: --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
