ASP.NET:HTTP 错误 500.19 – 内部服务器错误 0x8007000d

标签 asp.net iis web-applications web-config internal-server-error

我正在复制 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 在原始开发环境中运行良好。

这是我到目前为止检查并尝试过的内容:
  • 通过调用 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相关的答案(是否相关)之外,我尝试了所有帖子,但仍然不知道错误是什么。

    有人如何解决此错误吗? (如果可能的话,需要检查一个完整的列表,这样我们就可以减少类似的帖子。)我准备提供更多细节。

    最佳答案

    错误 0x8007000d 表示 缺少 URL 重写模块(在 web.config 中引用)或未安装正确的版本。

    只需通过 Web 平台安装程序安装 URL 重写模块。

    我建议检查 web.config 中的所有依赖项并安装它们。

    关于ASP.NET:HTTP 错误 500.19 – 内部服务器错误 0x8007000d,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16836473/

    相关文章:

    c# - 我们可以通过编程方式将网站托管到 IIS 吗?

    tomcat - 以确定的顺序在tomcat中启动webapps

    asp.net - 微软 Asp.net Owin Helios 项目还活着吗?

    ASP.NET 和 SQL Server : can #temp-table be used by an ASP. NET Web 表单应用程序?

    apache - IIS服务器和Apache服务器

    mysql - 电源故障后连接到 SQL Server 时出错

    nginx - 如何在一个域名下托管多个应用程序?

    javascript - 网络应用程序 : modules speaking with each others

    html - 如何根据其内部文本(英语/阿拉伯语)设置正确的元素 css 方向(ltr/rtl)?

    c# - Modal RadWindow 未在 Chrome 中关闭