59

在将网站转移到新的 IIS 7.5 时,我遇到以下错误:

我不确定是编程错误还是服务器错误

概括

HTTP 错误 500.19 - 内部服务器错误
无法访问请求的页面,因为该页面的相关配置数据无效。

详细错误信息
模块 IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x8007000d
Config Error
Config File \?\E:\kunden\homepages\0\d442477881\www\web.config
请求的URL http://mcstech.co.uk :80/
物理路径
登录方法尚未确定
登录用户尚未确定
失败请求跟踪日志目录faultRequestLogPath
配置源
-1:
0:

这是我的 webconfig 文件的内容

<?xml version="1.0"?>
<configuration>
    <configSections>
        <sectionGroup name="system.web">
            <section name="urlrewrites" type="ThunderMain.URLRewriter.Rewriter, ThunderMain.URLRewriter, Version=1.0.783.30976, Culture=neutral, PublicKeyToken=7a95f6f4820c8dc3"/>
        </sectionGroup>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
                    </sectionGroup>
                    </sectionGroup>
                    </sectionGroup></configSections>
    <connectionStrings>
        <add name="constr" connectionString="Data Source=98.130.0.20;Initial Catalog=C283122_mcs;Persist Security Info=True;User ID=C283122_mcsweb;Password=Mcsweb100t"/>
    </connectionStrings>
    <appSettings>
        <!--<add key="RTE.AjaxUploader.UploadSpeedKB" value="500"/>-->
        <!--<add key="RTE.ImageEditor.TempFolder" value="~/rtetemp"/>-->
        <add key="RichTextEditorTempPath  " value="~/rtetemp"/>
    </appSettings>
    <system.webServer>
        <staticcontent>
            <clientcache cachecontrolmaxage="150.00:00:00" cachecontrolmode="UseMaxAge">
            </clientcache></staticcontent>
        <modules>
            <remove name="ScriptModule"/><add name="UploadModule" type="RTE.UploadModule,RichTextEditor"/>
            <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></modules>
        <validation validateIntegratedModeConfiguration="false"/>
            <handlers>
            <remove name="WebServiceHandlerFactory-Integrated"/>
            <remove name="ScriptHandlerFactory"/>
            <remove name="ScriptHandlerFactoryAppServices"/>
            <remove name="ScriptResource"/>
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </handlers>
            </system.webServer>

    <system.web>
        <sessionState cookieless="UseCookies" cookieName="Dont_delete_cookie" mode="InProc"/>
        <!--<httpRuntime requestValidationMode="2.0"/>-->
        <machineKey validationKey="ACCC9E972F97EC8FDEE6852A04F17354F47E574D8769E0DE65291BBC22898370CE31FE4117CD1715F0CD8A932A7C71D3A4971B8BD534557881756E573DA6AF18" decryptionKey="0253BD20700FC9BC9DABDAA663581BF14B455000C74CDA08D558E30839C95312" validation="SHA1" decryption="AES"/>
        <!--  <sessionState mode="InProc" timeout="30" />-->
        <!-- <customErrors mode="Off"/>-->
        <customErrors mode="RemoteOnly" defaultRedirect="http://mcstech.co.uk/"/>

        <pages validateRequest="false">
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></controls></pages>

        <!--<httpModules>
      <add name="UploadModule" type="RTE.UploadModule,RichTextEditor"/>
    </httpModules>-->

        <urlrewrites>
            <rule>
                <url>/web-design-clients</url>
                <rewrite>web-design-clients.aspx</rewrite></rule>
            <rule>
                <url>/case-study/(.*)</url>
                <rewrite>/case-study.aspx?id=$1</rewrite>
            </rule>
            <rule><url>/case-studies</url>
                <rewrite>case-studies.aspx</rewrite></rule>
            <rule>
                <url>/internet-website-promotion-marketing</url>
                <rewrite>internet-website-promotion-marketing.aspx</rewrite></rule>
            <rule>
                <url>/flash-website-design</url>
                <rewrite>flash-website-design.aspx</rewrite></rule>
            <rule>
                <url>/ecommerce-site-design-development</url>
                <rewrite>ecommerce-site-design-development.aspx</rewrite>
            </rule>
            <rule>
                <url>/custom-website-design</url>
                <rewrite>custom-website-design.aspx</rewrite></rule>
            <rule>
                <url>/website-design-process-steps</url>
                <rewrite>website-design-process-steps.aspx</rewrite>
            </rule>
            <rule>
                <url>/sem-ppc-packages</url>
                <rewrite>sem-ppc-packages.aspx</rewrite>
            </rule>
            <rule>
                <url>/home</url>
                <rewrite>Default.aspx</rewrite>
            </rule>
            <rule>
                <url>/mcs-technologies</url>
                <rewrite>company.aspx</rewrite>
            </rule>
            <rule>
                <url>/web-solutions</url>
                <rewrite>solutions.aspx</rewrite>
            </rule>
            <rule>
                <url>/our-solutions/web-and-mobile-presence</url>
                <rewrite>/web-and-mobile-presence.aspx</rewrite></rule>
            <rule>
                <url>/our-solutions/online-branding</url>
                <rewrite>/online-branding.aspx</rewrite>
            </rule>
            <rule>
                <url>/our-solutions/business-software-solutions</url>
                <rewrite>/business-software-solutions.aspx</rewrite>
            </rule>
            <rule>
                <url>/our-solutions/online-sales-marketing</url>
                <rewrite>/online-sales-marketing.aspx</rewrite>
            </rule>
            <rule>
                <url>/our-solutions/mobile-applications</url>
                <rewrite>/mobile-applications.aspx</rewrite>
            </rule>
            <rule>
                <url>/web-design-services/web-design-development</url>
                <rewrite>/web-design-development.aspx</rewrite>
            </rule>
            <rule>
                <url>/web-design-services/web-hosting</url>
                <rewrite>/web-hosting.aspx</rewrite>
            </rule>
            <rule>
                <url>/web-design-services/mobile-app-development</url>
                <rewrite>/mobile-app-development.aspx</rewrite>
            </rule>
            <rule>
                <url>/web-design-services/web-marketing</url>
                <rewrite>/web-marketing.aspx</rewrite>
            </rule>
            <rule>
                <url>/web-design-services/seo</url>
                <rewrite>/seo.aspx</rewrite>
            </rule>
            <rule>
                <url>/portfolio</url>
                <rewrite>portfolio.aspx</rewrite>
            </rule>
            <rule>
                <url>/contact-mcs</url>
                <rewrite>contact_us.aspx</rewrite>
            </rule>
            <rule>
                <url>/website-packages</url>
                <rewrite>website-packages.aspx</rewrite>
            </rule>
            <rule>
                <url>/terms-conditions</url>
                <rewrite>terms-conditions.aspx</rewrite>
            </rule>
            <rule>
                <url>/sitemap</url>
                <rewrite>sitemap.aspx</rewrite>
            </rule>
            <rule>
                <url>/privacy-policy</url>
                <rewrite>privacy-policy.aspx</rewrite>
            </rule>
            <rule>
                <url>/our-methodology/web-design-development</url>
                <rewrite>/m-web-design-development.aspx</rewrite>
            </rule>
            <rule>
                <url>/our-methodology/web-marketing</url>
                <rewrite>/m-web-marketing.aspx</rewrite>
            </rule>
            <rule>
                <url>/our-methodology/mobile-applications</url>
                <rewrite>/m-mobile-applications.aspx</rewrite>
            </rule>
            <rule>
                <url>/our-expertise</url>
                <rewrite>our-expertise.aspx</rewrite>
            </rule>
            <rule>
                <url>/careers</url>
                <rewrite>careers.aspx</rewrite>
            </rule>
            <rule>
                <url>/request-for-proposal</url>
                <rewrite>request-for-proposal.aspx</rewrite>
            </rule>
            <rule>
                <url>/testimonials</url>
                <rewrite>Testimonials.aspx</rewrite>
            </rule>
            <rule>
                <url>/web-design-company</url>
                <rewrite>web-design-company.aspx</rewrite>
            </rule>
            <rule>
                <url>/contact-us-confirmation</url>
                <rewrite>contact-us-confirmation.aspx</rewrite>
            </rule>
            <rule>
                <url>/request-proposal-confirmation</url>
                <rewrite>request-proposal-confirmation.aspx</rewrite>
            </rule>
            <rule>
                <url>/Captcha</url>
                <rewrite>Captcha.aspx</rewrite>
            </rule>
        </urlrewrites>
        <compilation debug="true">


            <assemblies>
                <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
                <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
                <add assembly="System.Net, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
        <httpHandlers>
            <remove verb="*" path="*.asmx"/>
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpHandlers>
        <httpModules>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></httpModules></system.web>
    <system.codedom>
        <compilers>
            <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                <providerOption name="CompilerVersion" value="v3.5"/>
                <providerOption name="WarnAsError" value="false"/></compiler>
            <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
                <providerOption name="CompilerVersion" value="v3.5"/>
                <providerOption name="OptionInfer" value="true"/>
                <providerOption name="WarnAsError" value="false"/></compiler></compilers></system.codedom>
    <runtime>
        <assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly>
            <dependentAssembly>
                <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
                <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/></dependentAssembly></assemblyBinding></runtime></configuration>
4

11 回答 11

109

看来您正在使用 url 重写功能。请确保您已在服务器中安装了重写软件,否则您可能会收到此错误。

要检查是否安装了 URL 重写,您可以到“IIS 主页”查看组件列表中是否有 URL 重写组件。

如果你没有找到,那么你可以使用下面的链接安装它: http ://www.iis.net/downloads/microsoft/url-rewrite

您还可以使用Microsoft Web Platform Installer并安装产品URL Rewrite

于 2013-01-10T08:29:48.343 回答
27

尝试使用 Web Platform Installer 安装 URL Rewrite。这解决了我的问题。

在此处输入图像描述

于 2016-06-01T14:24:21.087 回答
26

您可能忘记安装适用于 Windows 的 Hosting Bundle。

从 Microsoft 网站下载 ASP.NET Core/.NET Core: Hosting Bundle。

于 2018-09-30T17:24:24.457 回答
4

HTTP 错误 500.19 - IIS 7.5 错误 0x8007000d 说明您的 web.config 中的元素无效。这就是 IIS 无法读取此文件以启动您的站点的原因。您可以通过注释一些块并查找错误类型来找到问题元素。此错误 (500.19) 的原因可能不同。

于 2015-10-20T12:13:56.383 回答
2

从 web.config 文件中删除了 directorybrowse 行并为我工作。

<system.webServer>
    <defaultDocument>
        <files>
            <clear />
            <add value="Default.asp" />
            <add value="Default.htm" />
        </files>
    </defaultDocument>
  <!--<directorybrowse enabled="false"></directorybrowse>-->
</system.webServer>
于 2015-06-15T13:36:41.577 回答
1

尝试托管.net core 3.1应用程序时,在IIS 10 (在 Windows 10 上)出现此错误。

web.config中通常会出现 aspNetCore 处理程序,它需要AspNetCoreModuleV2模块。如果您的 web.config 中有此内容,请确认已安装此模块。

要验证它,打开 IIS,选择您的站点,在 IIS 部分找到模块图标,打开它,搜索 AspNetCoreModuleV2。

要安装它:从ASP.NET Core Runtime 3.1.15下载适用于 Windows 的 Hosting Bundle

于 2021-05-20T20:42:43.900 回答
0

对于 DotNet Core,我可以通过运行 dotnet 命令来解决我的问题,如 web.config 文件中所示:

<aspNetCore processPath="dotnet" arguments=".\<YourApp>.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />

从命令提示符:

dotnet .\<YourApp>.dll  ...

就我而言,当我直接运行 dotnet 命令时,dotnet 会在命令提示符下显示导致我的特定问题的错误。看到错误使调试变得微不足道。直接从解决方案运行时,该错误被隐藏。

于 2021-04-05T18:15:26.743 回答
0

如果您已经从下面的链接安装了网络托管包

https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-6.0.1-windows-hosting-bundle-installer

尝试修复

于 2022-01-20T14:44:36.550 回答
0

我从这个答案中应用了答案,它有所帮助。

(从此链接安装重写 url:x64 安装程序

于 2021-10-05T21:29:43.020 回答
0

对我来说,刚刚修复了 Asp.Net Hosting Bundle 如果尚未安装,请从此处安装最新版本 - https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-6.0.2-windows -hosting-bundle-installer

于 2022-03-04T19:49:13.630 回答
0

就我而言,我没有安装.Net Hosting Bundle for Windows。安装它解决了我的问题。

  • 只需前往.Net下载官方网页
  • 选择您的 .Net 版本。
  • 搜索Windows | 在运行应用程序下托管捆绑包- 运行时具有适用于您的 .Net 版本的最新版本。
  • 安装 Hosting Bundle,现在您发布的 ASP .Net 网站将在 IIS 上运行。
于 2021-11-18T15:29:35.010 回答