HTTP错误500.19 - IIS 7.5错误0x8007000d

时间:2012-11-23 16:03:40

标签: http iis-7.5

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

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

  

摘要

     

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

     

详细错误信息
  模块IIS Web核心
  通知未知
  处理程序尚未确定
  错误代码0x8007000d
  配置错误
  配置文件\?\ E:\ kunden \ homepages \ 0 \ d442477881 \ www \ web.config
  请求的网址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>

6 个答案:

答案 0 :(得分:75)

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

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

如果您没有找到,那么您可以使用以下链接安装相同的内容: http://www.iis.net/downloads/microsoft/url-rewrite

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

答案 1 :(得分:9)

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

enter image description here

答案 2 :(得分:1)

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

<system.webServer>
    <defaultDocument>
        <files>
            <clear />
            <add value="Default.asp" />
            <add value="Default.htm" />
        </files>
    </defaultDocument>
  <!--<directorybrowse enabled="false"></directorybrowse>-->
</system.webServer>

答案 3 :(得分:1)

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

答案 4 :(得分:0)

您可能忘记了安装Windows托管包

从Microsoft网站下载ASP.NET Core / .NET Core:运行时和托管包

答案 5 :(得分:0)

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

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

从命令提示符:

dotnet .\<YourApp>.dll  ...