
Hi,
We unable to compile program from visual studio 2010 when installed on 64bit OS.
We have the following error message :
Error 1 Could not load file or assembly 'file:///C:/Windows/assembly/GAC_32/Interop.SAF/7.0.0.0__31bf3856ad364e35/Interop.SAF.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. Line 135, position 5. D:\SQL DATA\Parthi - NEM Enhancement\EM092200\Form1.frm.resX 135 5 em092200
We are using Solomon 7.0 Feature Pack 1. We can compile the program on 32 bit OS.
Anyone can advise on this?
Regards,
Pei Lin
*This post is locked for comments
I have the same question (0)Hello Pei Lin,
There are a number of problems in trying to use Visual Studio 2010 to create a SDK project on a 64 bit machine. The first was that you need to set the target CPU to "x86". Then you might get an relating to Mixed Mode because the project is targeting .NET Framework 4.0. If you switch this to .NET Framework 3.5, then that should take care of the "Mixed mode assembly is built against version..." error. At that point you should be able to compile and run the app. But once you start adding any of the SAF controls to the project, you will likely run into another error about not being able to find the interop.saf.dll. In this case visual studio gets confused and thinks the SAF objects (like the SAFMaskedText) are 64 bit when they are not. The following posting has some more info on this along with some ways to workaround that issue:
Another option is to use a 32bit machine (as you have found out) and you won't run into any of these issues. Or use Visual Studio 2008 and you shouldn't run into these issues either.