Machine config is loading from Framework folder instead if Framework64 folder

207 Views Asked by At

All my projects had the platform x86. Now the client want us to change the platform to x64. So i have changed the active platform to x64.

Question

1) All projects platform version is not changed to x64 instead it changed to "Any CPU" ?

2) After changing the platform i am getting the BadImage format issue. What i suspect is machine config is loading from Framework folder instead if Framework64 folder.

Below is the image for the same -

enter image description here

Please help !!!

1

There are 1 best solutions below

0
On BEST ANSWER

Visual Studio is a 32 bit process, so by default it launches the web site using 32 bit IIS Express. Then of course the web app on it attempts to load the 32 bit config files.

To switch to 64 bit IIS Express, you can follow this blog post,

Can't get IIS Express 8 beta to run website as 64-bit process