I am working on Windows client application using c#, have two projects in my VS 2010 solution, the start-up project and a class library which uses third party COM interop DLL.My desktop is 64 bit and all the client machines are 64 bit as well.
If I keep the start-up project as any cpu in (build settings) and x86 for the second project which invokes the COM DLL, I am getting the following error:
Could not load file or assembly ... or one of its dependencies. An attempt was made load a program with an incorrect format.
If I keep both the projects as Any cpu, I am getting the following error:
Retrieving the COM class factory for component with CLSID .. failed due to the following error:
Any idea how to resolve the issue without converting the solution (all projects) to x86.