none
The remote server returned an unexpected response: (413) Request Entity Too Large. RRS feed

  • Question

  • my client side config is this...

    <?xml version="1.0"?>
    <!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=169433
    -->
    <configuration>
    <system.web>
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.5"/>
    <httpRuntime targetFramework="4.5"/>
    </system.web>
    <system.serviceModel>
    <bindings>
    <basicHttpBinding>
    <binding name="BasicHttpBinding_IGetEzyCodeProcessedData" closeTimeout="01:01:00"
    openTimeout="01:01:00" receiveTimeout="01:10:00" sendTimeout="01:05:00"
    maxBufferPoolSize="2147483647" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
    <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
    maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
    </binding>
    <binding name="BasicHttpBinding_IGetEzyCodeProcessedData1" />
    </basicHttpBinding>
    </bindings>
    <client>
    <endpoint address="http://localhost:16657/GetEzyCodeProcessedData.svc"
    binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGetEzyCodeProcessedData"
    contract="IGetEzyCodeProcessedData" name="BasicHttpBinding_IGetEzyCodeProcessedData" />
    <endpoint address="http://localhost:16657/GetEzyCodeProcessedData.svc"
    binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IGetEzyCodeProcessedData1"
    contract="ServiceReference1.IGetEzyCodeProcessedData" name="BasicHttpBinding_IGetEzyCodeProcessedData1" />
    </client>
    </system.serviceModel>
    </configuration>

    And server side config is ..............


    <?xml version="1.0"?>
    <configuration>

    <appSettings>
    <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
    </appSettings>
    <system.web>
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.5" />
    <httpRuntime targetFramework="4.5"/>
    </system.web>
    <system.serviceModel>
    <bindings>
    <basicHttpBinding>
    <binding name="BasicHttpBinding_IGetEzyCodeProcessedData" closeTimeout="01:01:00"
    openTimeout="01:01:00" receiveTimeout="01:10:00" sendTimeout="01:05:00"
    maxBufferPoolSize="2147483647" maxBufferSize="2147483647"
    maxReceivedMessageSize="2147483647">
    <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
    maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
    </binding>
    </basicHttpBinding>
    </bindings>
    <behaviors>
    <serviceBehaviors>
    <behavior>
    <!-- To avoid disclosing metadata information, set the values below to false before deployment -->
    <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
    <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
    <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"/>
    <!--
    To browse web app root directory during debugging, set the value below to true.
    Set to false before deployment to avoid disclosing web app folder information.
    -->
    <directoryBrowse enabled="true"/>
    </system.webServer>

    </configuration>

    Tuesday, January 6, 2015 2:14 PM

Answers