在IIS8下部署MVC 4应用程序:HTTP错误404.0 - 未找到

时间:2012-11-05 02:33:50

标签: 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 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_IUSRS的应用程序文件夹授予读取权限

我做到了!那我现在有这个错误:

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

怎么了?

谢谢!

0 个答案:

没有答案