I am new to NServiceBus so sorry for any noob mistakes. Now the problem is I have a project which has to build and run in x64. When I build the project I receive this warning:
Assembly generation -- Referenced assembly 'NServiceBus.dll' targets a different processor
I have searched quite a bit for why NServiceBus is running on x86 and how to fix this, however I keep finding that NServiceBus is built to use any cpu so me switching to x64 should not matter. But when I try to run I get this error:
System.BadImageFormatException was unhandled
Message=Could not load file or assembly 'TestProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Source=mscorlib
FileName=TestProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
FusionLog=""
StackTrace:
at System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
at System.Type.GetType(String typeName, Boolean throwOnError)
at NServiceBus.Host.Program.GetEndpointConfigurationType()
at NServiceBus.Host.Program.Main(String[] args)
InnerException:
I know this error means I need to be using x86, however I cannot just simply go to x86 as this project relies on another project that is built for x64 and I cannot control that project. I'm not sure if this is a problem or not but the project is running on .Net Framework 3.5.
Thanks for any help.