我正在复制 Web 应用程序部署,发现了几个与以下相关的问题HTTP Error 500.19
。我的机器正在运行Windows 7的当工作开发正在使用时视窗8。我们正在使用以下方式开发我们的 Web 应用程序视觉工作室2010.
首先,我收到错误代码0x80070021
,与发布的类似here。
我根据接受的答案更新我的 web.config,然后我收到以下错误代码(与发布的类似)here).
HTTP Error 500.19 - Internal Server Error
Error Code 0x8007000d
Config Source -1: 0:
我已阅读中的症状定义微软支持页面错误原因是:
出现此问题的原因是ApplicationHost.config 文件或Web.config 文件包含格式错误的XML 元素。
解决方案是
从 ApplicationHost.config 文件或 Web.config 文件中删除格式错误的 XML 元素。
但是,我使用的web.config在原来的开发环境中运行得很好。
这是我迄今为止检查和尝试过的内容:
- 通过调用 aspnet_regiis -i 安装 ASP.NET
- 将我的应用程序设置为使用不同的应用程序池(ASP.NET v4.0、.NET v4 等)
- ApplicationHost.config 文件仍使用 Windows 7 中的默认值。
这是我的 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 相关的答案(是否相关)之外的所有帖子,但仍然不知道错误是什么。
有人知道如何修复这个错误吗? (如果可能的话,需要检查一份全面的清单,以便我们可以减少类似的帖子。)我准备提供更多详细信息。