2016-11-19 4 views
0

WCFサービスwsHttpBindingも</p> <p><strong>ヘルプページエラー</strong>を動作していないエラーやサービスつつあるwsHtpBindingヘルプページを使用してWCFサービスを作成しながら、私はエラーを取得してい

リソースが見つからないし。説明:HTTP 404。探しているリソース(またはその依存関係の1つ)が削除されたか、名前が変更されたか、一時的に使用できない可能性があります。次のURLを確認し、正しく入力されていることを確認してください。 http://localhost:80/Service1.svc/help

私の古い作業wsHttpbindingプロジェクトのweb.configファイルが、それは今働いていない:私の場合は

web.configファイル

<?xml version="1.0"?> 
<configuration> 
    <appSettings> 
    <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" /> 
    </appSettings> 
    <system.web> 
    <compilation debug="true" targetFramework="4.5" /> 
    <httpRuntime targetFramework="4.5" executionTimeout="3600" maxRequestLength="10000000"/> 
    <customErrors mode="Off" /> 
    </system.web> 
    <system.serviceModel> 
    <behaviors> 
     <serviceBehaviors> 
     <behavior name="MyServiceTypeBehaviors"> 
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" /> 
     </behavior> 
     <behavior name=""> 
      <serviceMetadata httpGetEnabled="true" /> 
      <serviceDebug includeExceptionDetailInFaults="false" /> 
     </behavior> 
     </serviceBehaviors> 
    </behaviors> 
    <bindings> 
     <wsHttpBinding > 
     <binding name="MyBasicwsHttpBinding"> 
      <security mode="None"> 
      <transport clientCredentialType="None" /> 
      </security> 
     </binding> 
     </wsHttpBinding> 
    </bindings> 
    <services> 
     <service behaviorConfiguration="MyServiceTypeBehaviors" name="WcfService1.Service1"> 
     <endpoint address="mex" binding="wsHttpBinding" bindingConfiguration="MyBasicwsHttpBinding" name="WcfService1.Service1" contract="WcfService1.IService1"/> 
     </service> 
    </services> 
    <serviceHostingEnvironment minFreeMemoryPercentageToActivateService="0" aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> 
    </system.serviceModel> 
    <system.webServer> 
    <modules runAllManagedModulesForAllRequests="true"/> 
    <directoryBrowse enabled="true"/> 
    </system.webServer> 
</configuration> 

答えて

0

、私はMicrosoftがフィルタリングモジュールUrl Scan 3.1をIISことが判明しましたIIS /ウェブサイトにインストールされました。コンテンツサイズに基づいて受信リクエストを拒否し、「404 Not found page」を返すという独自の制限があります。

%windir%\System32\inetsrv\urlscan\UrlScan.iniファイルの制限は、MaxAllowedContentLengthを必要な値に設定して更新できます。

たとえば、以下は300メガバイトの要求を可能にする

maxAllowedContentLength = 314572800

関連する問題

 関連する問題