Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net http错误500.19-内部服务器错误_Asp.net_Iis_Iis 7.5 - Fatal编程技术网

Asp.net http错误500.19-内部服务器错误

Asp.net http错误500.19-内部服务器错误,asp.net,iis,iis-7.5,Asp.net,Iis,Iis 7.5,我正在尝试让一个应用程序(我没有开发)在运行IIS 7.5的windows 2008 r2 64位服务器上运行。 我得到了上述错误-这里有更多的细节- The requested page cannot be accessed because the related configuration data for the page is invalid Error Code 0x8007007e 我知道服务器可以访问web.config,因为如果我对其进行更改,错误代码就会更改。 我还知道它是一

我正在尝试让一个应用程序(我没有开发)在运行IIS 7.5的windows 2008 r2 64位服务器上运行。
我得到了上述错误-这里有更多的细节-

The requested page cannot be accessed because the related configuration data for the page is invalid
Error Code 0x8007007e
我知道服务器可以访问web.config,因为如果我对其进行更改,错误代码就会更改。 我还知道它是一个正确的web.config,因为它在具有相同文件的不同服务器上成功运行

有人知道是什么导致了这一切吗。我收到的错误消息并没有告诉我任何事情

我尝试过使用FailedRequestTracing,但要么我不知道如何阅读这些日志,要么那里没有更多的信息。服务器上的事件日志中也没有错误

我还可以去哪里了解发生了什么

谢谢你的任何想法

编辑-这是web.config。正如我前面所说的,奇怪的是它正在另一台服务器上工作。我检查以确保gac中有引用的程序集可用(根据页面,这可能是问题所在)

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <appSettings>
        <add key="ChartImageHandler" value="storage=file;timeout=20;dir=c:\temp\;deleteAfterServicing=false;" />
    </appSettings>
    <connectionStrings>
        <!-- removed for this post -->

    </connectionStrings>
    <system.data>
        <DbProviderFactories>
            <!--<add name="IBM Informix .NET Data Provider 3.0.0" invariant="IBM.Data.Informix.3.0.0" description="IBM Informix Data Provider 3.0.0 for .NET Framework 2.0" type="IBM.Data.Informix.IfxFactory, IBM.Data.Informix.3.0.0, Version=3.0.0.2, Culture=neutral, PublicKeyToken=7c307b91aa13d208"/>-->
        </DbProviderFactories>
    </system.data>
    <system.web>
        <httpRuntime maxRequestLength="8192" />
        <customErrors mode="Off" />
        <sessionState timeout="360" />
        <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
            <namespaces>
                <clear />
            </namespaces>
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI.DataVisualization.Charting" assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
            </controls>
        </pages>
        <!--
          Set compilation debug="true" to insert debugging
          symbols into the compiled page. Because this
          affects performance, set this value to true only
          during development.
    -->
        <compilation debug="true" targetFramework="4.0">
            <assemblies>
                <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" /></assemblies></compilation>
        <httpHandlers>
            <add path="ChartImg.axd" verb="GET,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
        </httpHandlers>
    </system.web>
    <system.web.extensions>
        <scripting>
            <webServices>
                <jsonSerialization maxJsonLength="5000000" />
            </webServices>
        </scripting>
    </system.web.extensions>
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
            <remove name="ChartImageHandler" />
            <add name="ChartImageHandler" preCondition="integratedMode" verb="GET,HEAD" path="ChartImg.axd" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        </handlers>
        <defaultDocument>
            <files>
                <add value="index.aspx" />
            </files>
        </defaultDocument>
        <tracing>
            <traceFailedRequests>
                <add path="*.aspx">
                    <traceAreas>
                        <add provider="ASP" verbosity="Verbose" />
                        <add provider="ASPNET" areas="Infrastructure,Module,Page,AppServices" verbosity="Verbose" />
                        <add provider="ISAPI Extension" verbosity="Verbose" />
                        <add provider="WWW Server" areas="Authentication,Security,Filter,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI" verbosity="Verbose" />
                    </traceAreas>
                    <failureDefinitions timeTaken="00:00:00" statusCodes="400-600" />
                </add>
            </traceFailedRequests>
        </tracing>
    </system.webServer>
</configuration>

这有点骗人,但微软有一个专门针对这个问题的页面。。。还有无数的修复建议。你经历过了吗


试试这个

我能够通过禁用服务器上的WSU应用的压缩来克服这个错误

见详情


谢谢大家的帮助。

有没有可能发布有问题的web.config?请尝试安装IIS重写模块,因为我在新安装中遇到了这个问题。它已经安装。你能粘贴错误的屏幕截图吗,99%的时间线索都在错误页面中。是的,我已经完成了。对于那个特定的错误,它提到引用的文件无法加载,但我不知道它可能是哪个文件或dll…当然我给了你一个例子。。。不是确切的应用程序。我理解,但我不知道如何找到任何关于要重新安装的内容或有问题的部分…告诉我一件事。尝试Alt+Ctrl+Del并检查您是否能够看到任务管理器?然后问题在于注册表。您的注册表已损坏。你需要买一个注册表清理器。或者简单转到控制面板,在系统中创建一个新的用户帐户,并在浏览器上运行。是什么让你认为这是一个损坏的注册表?