0

My config file is here.

Looked other question tried everything but ...

Why i cant set maxRequestSize etc. That is not working.

It gives an error that "Request Entity Too Large"

Can anyone help me, please?

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

1 Answers1

0

I guess you receive this error on client side. remember you have to set the max size at client side!!!

<binding name="SoapBinding" maxReceivedMessageSize="2000000" />
Mohammad
  • 2,724
  • 6
  • 29
  • 55