2

我正在使用 IIS8 运行 Windows Server 2012。

我只是尝试使用 Visual Studio 2012 添加新创建的 MVC4 应用程序作为 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

怎么了 ??

谢谢 !

4

0 回答 0