4

Windowsを再インストールし、マシンを再び稼働させるためにすべてを構成しています。www.mysite.comに移動すると、次のエラーが発生します。 ここに画像の説明を入力してください

さまざまなフォーラムを調べて、フォルダc:\ dropbpx \ inetpub \ mysiteにIIS_IUSRS、IUSR、Everyone、およびNETWORK SERVICEの完全なアクセス許可を与えましたが、エラーが発生し続けます。また、%WINDIR%\ System32 \ inetsrv \config\のapplicationhost.configでIIS_IUSRSの完全なアクセス許可を付与しました。

また、IIS経由で自分のWebサイトにアクセスし、[認証]をクリックすると、次のエラーが発生します。この操作の実行中にエラーが発生しました。詳細:ファイル名:\?\ C:\ Dropbox \ inetpub \ mysite \ web.configエラー:

私のWebサイトのアプリケーションプールはASP.NETv4.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>

他に何ができますか?

4

3 に答える 3

10

関連しないと思われる web.config の部分を決して除外しないでください。それは、私が web.config に持っている urlrewrite セクションでした! 私はそれをインストールしました (http://www.microsoft.com/web/gallery/install.aspx?appid=urlrewrite2) が動作するようになりました。

于 2012-08-17T20:48:49.700 に答える
4

次の IIS 機能がオンになっていることを確認します。(アプリケーション開発機能)

ここに画像の説明を入力

[アプリケーション開発機能] の下の機能がオンになっていない場合は、コントロール パネルの [Windows の機能] からオンにしてオンにします。

于 2014-01-19T19:32:31.390 に答える