2016-12-02 3 views
0

Meine Konfigurationsdatei ist hier.WCF Request Entity zu groß Driving Me Crazy

Sah andere Frage alles versucht, aber ...

Warum i gesetzt kippe MaxRequestSize usw., das nicht funktioniert.

Es gibt einen Fehler, dass "Request Entity Too Large"

Kann mir jemand bitte helfen?

<?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

Lesen Sie [Dereks Antwort] (http://stackoverflow.com/a/26725542/5588347). Das ist wirklich hilfreich. –

Antwort

0

Ich vermute, dass Sie diesen Fehler auf der Clientseite erhalten. erinnern Sie sich, Sie müssen die maximale Größe auf der Client-Seite festlegen !!!

<binding name="SoapBinding" maxReceivedMessageSize="2000000" /> 
Verwandte Themen