I have a class library that was originally written in VS 2008. The time has come to upgrade it to VS 2010. The library belongs with an application that has its own toolkit. I have installed the latest version of this toolkit. The problem I have is that when I build the code and run the application, I get this error message."
That message may indicate that you have a broken reference for GPConnNet.dll. Even though your VS project may not show the broken reference, for some reason GPConnNet usually needs to be removed and readded after an upgrade.
In your VS project, remove the GPConnNet.dll, then add it back by browsing to Program Files (x86) \ Common Files \ Microsoft Shared \ Dexterity \ v2.0 \ GPConnNet.dll
If that doesn't work, try changing your compilation options to target the x86 platform rather than Any CPU.
Give that a try and let me know if that fixes the problem.
(After thinking about it more and re-reading the error--particularly the "incorrect format" message, my money is on x86, but let me know what you find)
Thanks,
Steve Endow
Microsoft MVP - Dynamics GP
Dynamics GP Certified IT Professional