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

时间:2012-08-17 13:58:13

标签: iis-7.5

我重新安装了Windows,现在正在配置所有内容以使我的设备重新启动并运行。导航到www.mysite.com时我收到此错误: enter image description here

我查看了各种论坛并为IIS_IUSRS,IUSR,Everyone和NETWORK SERVICE提供了文件夹c:\ dropbpx \ inetpub \ mysite完整权限,但我一直收到错误。 我还在%WINDIR%\ System32 \ inetsrv \ config \

中的applicationhost.config上为IIS_IUSRS授予了完全权限

当我通过IIS访问我的网站并点击“身份验证”时,我收到错误消息: 执行此操作时出错。 细节: 文件名:\?\ C:\ Dropbox \ inetpub \ mysite \ web.config 错误:

我的网站的应用程序池设置为ASP.NET v4.0

请看这里我的web.config

<?xml version="1.0" encoding="UTF-8"?>

<!--
For more information on how to configure your ASP.NET application, please visit  http://go.microsoft.com/fwlink/?LinkId=169433
-->

<configuration>


<connectionStrings>
<add name="conn1" connectionString="data source=(local);Initial Catalog=tt;User Id=sa;Password=dfsdf3454sdg;" providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web.extensions>
<scripting>
  <webServices>
    <jsonSerialization maxJsonLength="5000000" />
  </webServices>
</scripting>
</system.web.extensions>

<system.web>
<httpRuntime maxRequestLength="5120000" requestValidationMode="2.0" />  
<compilation debug="true" strict="false" explicit="true" targetFramework="4.0" />

<sessionState mode="InProc" timeout="60" />
<authentication mode="Forms">
  <forms name=".MyCookie" slidingExpiration="true" timeout="60" cookieless="AutoDetect" loginUrl="/login/" protection="All" defaultUrl="/">
    <credentials passwordFormat="SHA1" />
  </forms>
</authentication>
<roleManager domain="192.168.0.103" enabled="true" cacheRolesInCookie="true" cookieName=".ASPXROLES" cookieTimeout="60" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="All" defaultProvider="AccessRoleProvider" createPersistentCookie="false" maxCachedResults="25">
  <providers>
    <clear />
    <add name="AccessRoleProvider" connectionStringName="conn1" applicationName="/wedding" type="Samples.AccessProviders.AccessRoleProvider" />
  </providers>
</roleManager>
<membership defaultProvider="AccessMembershipProvider" userIsOnlineTimeWindow="30">
  <providers>
    <clear />
    <add name="AccessMembershipProvider" type="Samples.AccessProviders.AccessMembershipProvider" connectionStringName="conn1" requiresQuestionAndAnswer="false" applicationName="/wedding" minRequiredPasswordLength="6" enablePasswordRetrieval="false" enablePasswordReset="true" requiresUniqueEmail="true" minRequiredNonalphanumericCharacters="0" passwordFormat="Hashed" />
  </providers>
</membership>
</system.web>
<system.webServer>
<!-- SEO-friendly URLS for IIS 7.0 (if you're using IIS 6.0 see above) -->
<validation validateIntegratedModeConfiguration="false" />
<modules runAllManagedModulesForAllRequests="true">
  <add type="aspnetforum.ForumSEOHttpModule, aspnetforum" name="ForumSEOHttpModule" />
</modules>
<handlers>
  <add name="ScriptCombiner" verb="POST,GET" path="ScriptCombiner.axd" preCondition="integratedMode" type="ScriptCombiner, App_Code" />
</handlers>
<security>
  <requestFiltering allowDoubleEscaping="true" />
</security> 
<defaultDocument>
  <files>
    <clear />
    <add value="default.aspx" />
    <add value="Default.htm" />
    <add value="Default.asp" />
    <add value="index.htm" />
    <add value="index.html" />
    <add value="iisstart.htm" />
  </files>
</defaultDocument>
    <staticContent>
        <mimeMap fileExtension=".kml" mimeType="application/vnd.google-earth.kml+xml" />
    </staticContent>
</system.webServer>
<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
<bindings>
  <basicHttpBinding>
    <binding name="VirtueleKassaWebServiceSoap" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
      <security mode="Transport">
        <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
      </security>
    </binding>
    <binding name="VirtueleKassaWebServiceSoap1" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
      <security mode="None">
        <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
        <message clientCredentialType="UserName" algorithmSuite="Default" />
      </security>
    </binding>
  </basicHttpBinding>
</bindings>
<client>
  <endpoint address="https://secure.virtuelekassa.nl/webservice/VirtueleKassaWebservice.asmx" binding="basicHttpBinding" bindingConfiguration="VirtueleKassaWebServiceSoap" contract="virtuelekassa.VirtueleKassaWebServiceSoap" name="VirtueleKassaWebServiceSoap" />
</client>
  <services>
      <service name="RestService.weddingservice">
          <endpoint behaviorConfiguration="webHttp" binding="webHttpBinding" contract="RestService.Iweddingservice" />
      </service>
  </services>

<behaviors>
  <serviceBehaviors>
    <behavior name="">
      <serviceMetadata httpGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="true" />
    </behavior>
  </serviceBehaviors>
  <endpointBehaviors>
    <behavior name="webHttp">
      <webHttp />
    </behavior>
  </endpointBehaviors>
</behaviors>
</system.serviceModel>
</configuration>

它还能做什么?

3 个答案:

答案 0 :(得分:10)

永远不要忽略你认为不相关的web.config部分:这是我在web.config中的urlrewrite部分!我安装了它(http://www.microsoft.com/web/gallery/install.aspx?appid=urlrewrite2),现在它可以正常工作。

答案 1 :(得分:3)

检查以下IIS功能是否已启用。(应用程序开发功能)

enter image description here

如果“应用程序开发功能”下的功能未通过控制面板上的“Windows功能”打开,则将其打开。

答案 2 :(得分:0)

  

那是因为你没有在IIS中注册ASP。

     

转到C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319并执行   ASPNET_REGIIS.EXE

     

转到IIS,展开服务器,单击“应用程序池”。如果它没有   包含&#34; ASP.NET v4.0&#34;和#34; ASP.NET v4.0 Classic&#34;文件,ASP不是   在IIS中注册。

     

按命令提示符转到   C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319位置。类型   aspnet_regiis -i

     

现在它将显示ASP已注册。之后   完成后,你可以看到&#34; ASP.NET v4.0&#34;和#34; ASP.NET v4.0 Classic&#34;档   在IIS中的应用程序池