我正在复制 Web 应用程序部署,发现了几个与 HTTP Error 500.19
相关的问题.我的机器正在运行 window 7 而工作开发正在使用 window 8 .我们正在使用 开发我们的 Web 应用程序 Visual Studio 2010 .
首先,我得到了错误代码 0x80070021
,类似于发布的 here .
我根据接受的答案更新了我的 web.config,然后我得到了以下错误代码(与发布的 here 类似)。
HTTP Error 500.19 - Internal Server Error
Error Code 0x8007000d
Config Source -1: 0:
我已阅读 Microsoft support page 中的症状定义错误的原因是:
出现此问题的原因是 ApplicationHost.config 文件或 Web.config 文件包含格式错误的 XML 元素。
解决方案是
从 ApplicationHost.config 文件或 Web.config 文件中删除格式错误的 XML 元素。
但是,我使用的 web.config 在原始开发环境中运行良好。
这是我到目前为止检查并尝试过的内容:
这是我的 Web.Config 的一部分
<system.webServer>
<section name="handlers" overrideModeDefault="Allow" />
<section name="modules" allowDefinition="MachineToApplication" overrideModeDefault="Allow" />
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
</modules>
<handlers>
<remove name="UrlRoutingHandler" />
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</handlers>
<urlCompression doStaticCompression="true" doDynamicCompression="false"></urlCompression>
<directoryBrowse enabled="true" />
<defaultDocument>
<files>
<add value="Logon.aspx" />
</files>
</defaultDocument>
</system.webServer>
我在stackoverflow中阅读了类似/重复/关闭的帖子(大约13个)帖子,除了与Ajax相关的答案(是否相关)之外,我尝试了所有帖子,但仍然不知道错误是什么。
有人如何解决此错误吗? (如果可能的话,需要检查一个完整的列表,这样我们就可以减少类似的帖子。)我准备提供更多细节。
最佳答案
错误 0x8007000d 表示 缺少 URL 重写模块(在 web.config 中引用)或未安装正确的版本。
只需通过 Web 平台安装程序安装 URL 重写模块。
我建议检查 web.config 中的所有依赖项并安装它们。
关于ASP.NET:HTTP 错误 500.19 – 内部服务器错误 0x8007000d,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16836473/