简体   繁体   中英

How to run a 64 bit web application on a 64bit machine

I have to make a web application as 64 bit [ Since i am using a dll with only 64 bit version exists]. And my machine config is 64 bit machine and in IIS Application pool settings Enable32BItApplications flag is false for all pools. But when i try to run my MVC3 project i am getting this exception

Parser Error

Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: Could not load type '_64bitApp.MvcApplication'.

Source Error:

Line 1: <%@ Application Codebehind="Global.asax.cs" Inherits="_64bitApp.MvcApplication" Language="C#" %>

Source File: /global.asax Line: 1

Any idea why its happening ? How can i solve it abnd run the project in 64 bit mode

As per suggestions i tried a lot and after changing the output path to Bin\\ [instead of Bin\\x64\\debug ] NOW i am getting the exceptions BadImageFormatException ConfigurationErrorsException HttpException 64 bit web app

通过将构建选项中的目标平台从任何CPU更改为64位,可以强制项目以64位编译

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM