I recently upgraded a solution from VS2008 to VS2010. Just a solution upgrade, nothing else. I am targeting .Net 3.5. The solution is set to build build for "any CPU". Now, after the solution upgrade, I get a BadImageFormatException when trying to use Azman:
"Could not load file or assembly 'Interop.AZROLESLib, 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."
When I set the solution to build 32 bit everything is still fine and Azman works correctly. I'm running this on Windows 7 64 bit by the way. Any ideas what's going on?