J
John A Grandy
VS2005 ( all updates ) on XP ( all updates )
I have a solution with many projects and a substantial reference tree.
I have a Windows Application project that will build but not run. It fails
in Program.cs when it attempts to invoke the form class :
Application.Run( new Form1() );
BadImageFormatException was unhandled
Could not load file or assembly 'MyApi, 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.
The strange thing is that other Windows Applications that contain a
reference to the MyApi assembly run just fine.
I clean and rebuild to no avail. Also, removing/adding ref does not help.
What could be going on ?
I have a solution with many projects and a substantial reference tree.
I have a Windows Application project that will build but not run. It fails
in Program.cs when it attempts to invoke the form class :
Application.Run( new Form1() );
BadImageFormatException was unhandled
Could not load file or assembly 'MyApi, 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.
The strange thing is that other Windows Applications that contain a
reference to the MyApi assembly run just fine.
I clean and rebuild to no avail. Also, removing/adding ref does not help.
What could be going on ?