[英]HTTP Error 500.19 - Internal Server Error
I got this problem after deploying my web package to IIS:将我的 web 包部署到 IIS 后,我遇到了这个问题:
HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
HTTP 错误 500.19 - 内部服务器错误 无法访问请求的页面,因为该页面的相关配置数据无效。
This configuration section cannot be used at this path.
此配置部分不能用于此路径。 This happens when the section is locked at a parent level.
当该部分锁定在父级别时会发生这种情况。 Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
锁定要么是默认的(overrideModeDefault="Deny"),要么是由带有 overrideMode="Deny" 或旧版 allowOverride="false" 的位置标签显式设置的。
Config Source:
119: </modules>
120: <handlers>
121: <remove name="WebServiceHandlerFactory-Integrated" />
How can I solve this issue?我该如何解决这个问题?
See Scenario 7 on this page Troubleshooting HTTP 500.19 Errors in IIS 7 , it looks pretty much identical to your error message.请参阅此页面上的场景 7 对IIS 7 中的 HTTP 500.19 错误进行故障排除,它看起来与您的错误消息非常相似。
One of the key points I think is the following:我认为的关键点之一如下:
This usually indicates that ASP.NET is either not installed or has corrupted/incomplete installation because installation of asp.net unlocks that section.
这通常表示 ASP.NET 未安装或安装已损坏/不完整,因为 ASP.NET 的安装会解锁该部分。 Hence if this is the case, one should install asp.net feature from Server Manager (Under Web Server Role in Windows Server 2008 and in Program Features-> Application server in Vista/Windows7).
因此,如果是这种情况,应该从服务器管理器(在 Windows Server 2008 中的 Web 服务器角色下和在 Vista/Windows7 中的程序功能-> 应用程序服务器下)安装 asp.net 功能。 This KB929772 talks about the ASP.NET installation failure reason.
这个KB929772讲了ASP.NET安装失败的原因。
If you're just doing this on your local desktop IIS rather than on a server you may possibly need to use aspnet_regiis to reregister .NET with IIS, although I'm not guaranteeing that will work to unlock the section.如果您只是在本地桌面 IIS 上而不是在服务器上执行此操作,您可能需要使用 aspnet_regiis 向 IIS 重新注册 .NET,尽管我不保证这将有助于解锁该部分。
I've just experienced:我刚刚经历过:
HTTP Error 500.19 - Internal Server Error
HTTP 错误 500.19 - 内部服务器错误
And the problem was (holy moly):问题是(圣莫利):
I got this error.我收到了这个错误。 I googled for hours.
我用谷歌搜索了几个小时。 I tried all kind of suggestions.
我尝试了各种建议。 After hours of frustration, it turned out that I only had an extra double quote in my cshtml file.
经过数小时的挫折,结果我的 cshtml 文件中只有一个额外的双引号。 I removed the quote and everything worked again.
我删除了报价,一切又恢复了。 So error is misleading.
所以错误是误导。 I post this in case somebody else runs into the same problem.
我发布这个以防其他人遇到同样的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.