2012-11-23 272 views
23

在傳輸網到新的IIS 7.5,我面對以下錯誤:HTTP錯誤500.19 - IIS 7.5錯誤0x8007000d

我不知道這是否是編程錯誤或服務器錯誤

Summary

HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information
Module IIS Web Core
Notification Unknown
Handler Not yet determined
Error Code 0x8007000d
Config Error
Config File \?\E:\kunden\homepages\0\d442477881\www\web.config
Requested URL http://mcstech.co.uk:80/
Physical Path
Logon Method Not yet determined
Logon User Not yet determined
Failed Request Tracing Log Directory faultRequestLogPath
Config Source
-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> 
+0

你有沒有在應用程序池右邊框架的版本? – ChrisBint

+0

我有同樣的問題,據我搜查這可能會發生由於發佈的文件夾或無效的Web.config權限問題,但在你的情況下,web.config似乎是有效的。我確定這不是一個編程錯誤,它應該是一個服務器錯誤 – Umamaheswaran

回答

53

看來你正在使用url重寫功能。請確保您已在服務器中安裝了重寫軟件,否則您可能會遇到此錯誤。

要檢查是否安裝了URL重寫,可以轉到「IIS Home」並查看組件列表中是否存在URL重寫組件。 http://www.iis.net/downloads/microsoft/url-rewrite

您還可以使用微軟Web平臺安裝和安裝產品URL重寫

如果你沒有找到一個,那麼你可以通過下面的鏈接安裝相同。

+0

應該安裝哪個重寫軟件?如何安裝它? – splash27

+1

@ splash27 URL重寫是IIS的Microsoft擴展。我已經添加了鏈接,你可以得到它。希望這有助於 – Umamaheswaran

+0

它解決了我的麻煩,以及更多...此鏈接安裝程序包括選項PHP 7緩存x64 – Froggiz

0

從web.config文件中刪除了directorybrowse行併爲我工作。

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

HTTP錯誤500.19 - IIS 7.5錯誤0x8007000d說你的web.config中的無效元素。這就是爲什麼IIS無法讀取該文件以啓動您的網站。 您可以通過評論某些塊並查找錯誤類型來找到probloem元素。這個錯誤的原因(500.19)可能會有所不同。

2

嘗試使用Web平臺安裝程序安裝URL重寫。這解決了我的問題。

enter image description here

相關問題