I'm writing a simple C# application to access defects in HP ALM -- Quality Center.
I'm using Visual Studio 2008, HP ALM Quality Center 11.0, and version 9.2.0.5089 of OTAClient.dll.
When I execute this line of code:
TDConnection qctd = new TDConnection();
I get the following error:
"An unhandled exception of type 'System.BadImageFormatException' occurred in HPQCDataSet.exe
Additional information: Retrieving the COM class factory for component with CLSID {C5CBD7B2-490C-45F5-8C40-B8C3D108E6D7} failed due to the following error: 800703e6."
The approach suggested elsewhere for dealing with this situation involves adding some code like this as a post-build event:
call "$(DevEnvDir)..\tools\vsvars32.bat" editbin.exe /NXCOMPAT:NO "$(TargetPath)"
I've done that, and I've also set my Platform Target to x86, but the BadImageFormatException error still exists.
Any suggestions as to other steps I might try?