Working in 64bit environment with 32 bit assembly

I was working in one of the project which needed to convert VS 2003 to VS 2010 and should run in Windows 7 64 bit environment. The problem was application was using a 32 bit unmanaged code.


I tried below and failed.

Set Target environment to 64 bit environment from Any CPU for exe and all mananged dlls.

I was getting "Could not load file assembly " error.

I changed Target environment to 32 bit environment. Now it is working.

It indicates either all assemblies should target same environment, since we can not change the target environment of unmananged assemblies which is in 32 bit in this case we have no option to change all mananged assemblies targeting 32 bit.


Make sure X86 folder is created in bin and from that folder get the assemblies.

No comments:

Post a Comment

Pages