Why can't I configure an asp.net mvc 4 project on x64?

I have a VS2012 solution which can be simplified as follows: asp.net mvc 4 web application, C # middle class library project and C # end library project for calculations, etc.

Currently, the web application has no links to other projects and is set to “Any processor” when created. The final project is x64. Now I want to join the web application at the end of the project through the middle project, but I understand that architecture type errors occur when trying to link to the middle x64 project from the web application. If I installed the web application on x64, I also get the same type of error.

The web application will run on the x64 server and therefore I think the easiest way is to install the x64 web application, but I believe that this may be the case when you cannot change it retrospectively, i.e. it needs to be created as x64.

My question is Can I convert an existing web application to x64? If not, how to create an x64 web application (I did not see any option) EDIT: Even when I create a new mvc 4 project, change the build setting to x64, I still get this problem.

You will be surprised to hear that I am very new to software development, and although the build errors between x86 and x64 seem intuitive, I really don't understand why. There are many posts in this thread in which the answers "change all projects to" Any processor ", but I have to save the final project as x64.

I am using Windows 8 and IIS 8.

For reference, the build warning that I get when adding a link for an average project in a web application is:

Warning 1 There was a mismatch between the processor architecture of the "MSIL" project being created and the processor architecture of the link C: \ MyPath \ Sln \ MiddleProject \ bin \ x64 \ Debug \ MiddleProject.dll "," AMD64 "This mismatch may lead to runtime failures. Please , consider changing the target processor architecture of your project through Configuration Manager to align processor architectures between your project and links, or to accept link dependencies with a processor architecture that matches the target processor architecture of your pro project.

+7
asp.net-mvc
source share
1 answer

It took me a lot of effort to find the answer to the same problem. It turns out you need to get IIS Express to work as a 64-bit process. How do you do this?

Change it in VS: Tools | Options | Projects and Solutions | Web projects | Use the 64-bit version of IIS Express

I hope this helps solve your problem.

+23
source share

All Articles