【发布时间】:2013-09-04 17:53:30
【问题描述】:
在大家阅读本文之前,我只想说我知道那里有相关的线程,但我要么尝试过,要么不明白。话虽如此,这里什么都没有......
我正在尝试在我的 IIS 中运行 MVC Web 应用程序。不幸的是,我完全陷入了这个错误:
HTTP Error 500.19 - Internal Server Error
The Request page cannot be accessed becasue the related configuration data for
the page is invalid.
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: \foo\web.config
Request URL: http://localhost/WEBAPP
Logon Method: Not yet determined
Logon User: Not yet determined
Config Source
-1:
0:
我不太确定还能做什么。我也尝试过授予 web.config 文件的读取权限,但这似乎不起作用。
如果有人有任何信息或能够帮助我解决这个问题,我们将不胜感激。谢谢!
【问题讨论】:
-
我在 VS 2015 社区版中遇到了同样的问题,并通过重新启动 VS 来修复它。
-
我的问题通过下面的帖子解决了:stackoverflow.com/a/9239936/2155778
-
@HENGVongkol 感谢您在花费大量时间找出问题的原因后分享您的解决方案。
-
在我的情况下,本地运行时出现问题,控制面板 -> 程序 -> IIS Express -> 修复,它会自动重置 IIS Express 设置,有效
标签: c# asp.net-mvc-3 iis-7