Question : VB.NET: problem of debugging on windows 7

Hi X-perts,

I have 2 projects in my solution: one COM dll (for Excel) and another is just a three line code to debug the 1st one directly from VS2008. My 2nd project references the COM dll.

Everything works perfectly in winXP, but on windows 7, when I start debugging, it cannot load the referenced dll (the main COM project) with the message:

System.BadImageFormatException was unhandled
  Message="Could not load file or assembly 'My AssemplyName, Version=1.0.0.0,

what could be wrong with Windows 7?

Note that the main COM dll runs OK on windows 7 when attached to Excel application.

Please advise

Answer : VB.NET: problem of debugging on windows 7

When you move the project to Windows 7 did you check the Reference node in Solution Explorer to make sure that it could find the dll. If you see a yellow triangle with exclamation symbol in it delete the reference and then go through re-selecting it.
Random Solutions  
 
programming4us programming4us