Asp.net mvc 4 在IIS8下部署MVC4应用程序:HTTP错误404.0-未找到
我正在用IIS8运行windows server 2012 我只是尝试添加一个新创建的MVC4应用程序,该应用程序使用visual studio 2012作为IIS 8中的虚拟目录,然后将其转换为一个应用程序。 首先我得到了这个错误:Asp.net mvc 4 在IIS8下部署MVC4应用程序:HTTP错误404.0-未找到,asp.net-mvc-4,iis-8,windows-server-2012,Asp.net Mvc 4,Iis 8,Windows Server 2012,我正在用IIS8运行windows server 2012 我只是尝试添加一个新创建的MVC4应用程序,该应用程序使用visual studio 2012作为IIS 8中的虚拟目录,然后将其转换为一个应用程序。 首先我得到了这个错误: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Detailed Error Information:
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x80070005
Config Error Cannot read configuration file due to insufficient permissions
Config File \\?\C:\Users\Administrator\Documents\Visual Studio 2012\Projects\MvcApplication2\MvcApplication2\web.config
Requested URL http://localhost:80/mvc
Physical Path C:\Users\Administrator\Documents\Visual Studio 2012\Projects\MvcApplication2\MvcApplication2
Logon Method Not yet determined
Logon User Not yet determined
我搜索了解决方案,发现我必须为IIS\U IUSR授予对应用程序文件夹的读取权限
我做到了!那么我现在有一个错误:
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Detailed Error Information:
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://localhost:80/mvc/Account/Login?ReturnUrl=%2fmvc
Physical Path C:\Users\Administrator\Documents\Visual Studio 2012\Projects\MvcApplication2\MvcApplication2\Account\Login
Logon Method Anonymous
Logon User Anonymous
怎么了
谢谢大家!