我正在使用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
怎么了?
谢谢!