2016-12-02 6 views
0

私の設定ファイルはこちらです。WCFリクエストエンティティが大きすぎる運転中クレイジー

は、私が働いていないことをmaxRequestSizeなどを設定するカントはなぜすべてけど...

を試みた他の質問を見ました。

それは「リクエスト・エンティティが大きすぎます」

は誰もが、私を助けてくださいすることができ、そのエラーを与えますか?

<?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"/> 
    </system.web> 
    <system.serviceModel> 
    <services> 
     <service name="RST_SSDOP_TO_LOGO.Service.Server"> 
     <endpoint name="EndPoint1" binding="basicHttpBinding" bindingConfiguration="qwerty" contract="RST_SSDOP_TO_LOGO.Service.IServer"></endpoint> 
     </service> 
    </services> 
    <client> 
     <endpoint address="http://192.168.1.249:52215/Server.svc" binding="basicHttpBinding" 
     bindingConfiguration="qwerty" contract="RST_SSDOP_TO_LOGO.Service.IServer" 
     name="EndPoint1" kind="" endpointConfiguration="" /> 
    </client> 
    <bindings> 
     <basicHttpBinding> 
     <binding name="qwerty" closeTimeout="01:00:00" maxBufferPoolSize="2147483647" 
      maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" 
      messageEncoding="Text"> 
      <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" 
      maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> 
     </binding> 
     </basicHttpBinding> 
    </bindings> 
    <behaviors> 
     <serviceBehaviors> 
     <behavior> 
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/> 
      <serviceDebug includeExceptionDetailInFaults="false"/> 
     </behavior> 
     </serviceBehaviors> 
    </behaviors> 
    <protocolMapping> 
     <add binding="basicHttpsBinding" scheme="https" /> 
    </protocolMapping>  
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> 
    </system.serviceModel> 
    <system.webServer> 
    <modules runAllManagedModulesForAllRequests="true"/> 
    <directoryBrowse enabled="true"/> 
    </system.webServer> 
</configuration> 
+0

[デレクの答え](http://stackoverflow.com/a/26725542/5588347)を読んでください。それは本当に役に立つ。 –

答えて

0

クライアント側でこのエラーが発生すると思います。 クライアント側で最大サイズを設定する必要があることを忘れないでください!

<binding name="SoapBinding" maxReceivedMessageSize="2000000" /> 
関連する問題