ASP.NET:HTTP 错误 500.19 – 内部服务器错误 0x8007000d [英] ASP.NET: HTTP Error 500.19 – Internal Server Error 0x8007000d

查看:28
本文介绍了ASP.NET:HTTP 错误 500.19 – 内部服务器错误 0x8007000d的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在复制 Web 应用程序部署并发现多个与 HTTP 错误 500.19 相关的问题.我的机器运行的是 Windows 7,而工作开发使用的是 Windows 8.我们正在使用 Visual Studio 2010 开发我们的 Web 应用程序.

I am replicating web application deployment and found several issues related to HTTP Error 500.19. My machine is running Windows 7 while the working development is using Windows 8. We're developing our Web Application using Visual Studio 2010.

首先,我收到错误代码 0x80070021,类似于发布的 此处.我根据接受的答案更新了我的 web.config,然后我得到了以下错误代码(类似于发布的 此处).

First, I got error code 0x80070021, similar as posted here. I update my web.config according to the accepted answer and then I got following error code (which is similar as posted here).

HTTP Error 500.19 - Internal Server Error
Error Code 0x8007000d
Config Source -1: 0:

我已阅读 Microsoft 支持页面 中的症状定义,错误原因是:

I have read the symptoms definition in Microsoft support page and cause of the error is:

出现此问题的原因是 ApplicationHost.config 文件或 Web.config 文件包含格式错误的 XML 元素.

解决方案是

从 ApplicationHost.config 文件或 Web.config 文件中删除格式错误的 XML 元素.

但是,我使用的 web.config 在原始开发环境中运行良好.

However, the web.config that I used is working perfectly in the original development environment.

这是我迄今为止检查和尝试过的:

Here is what I have checked and tried so far:

  1. 通过调用 aspnet_regiis -i 安装 ASP.NET
  2. 将我的应用程序设置为使用不同的应用程序池(ASP.NET v4.0、.NET v4 等)
  3. ApplicationHost.config 文件仍在使用 Windows 7 的默认设置.

这是我的 Web.Config 的一部分

This is part of my 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 相关的答案(是否相关),但仍然不知道错误是什么.

I have read similar/duplicates/closed posts (around 13) posts in stackoverflow, tried all except the answer related to Ajax (is it related) and still have no clue on what the error is.

有没有人解决这个错误?(如果可能的话,需要检查一份完整的清单,这样我们才能减少类似的帖子.)我准备提供更多细节.

Does anyone one how to fix this error? (And if possible, a comprehensive lists of things need to be checked so we can reduce similar posts like this.) I am ready to provide more details.

推荐答案

Error 0x8007000d 意味着 URL 重写模块(在 web.config 中引用)缺失或未安装正确版本.

Error 0x8007000d means URL rewriting module (referenced in web.config) is missing or proper version is not installed.

只需通过网络平台安装程序安装 URL 重写模块即可.

Just install URL rewriting module via web platform installer.

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

I recommend to check all dependencies from web.config and install them.

这篇关于ASP.NET:HTTP 错误 500.19 – 内部服务器错误 0x8007000d的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆