amount of data returned by wcf 3.0 service contract method causes error

Posted by ferrell carr on Stack Overflow See other posts from Stack Overflow or by ferrell carr
Published on 2010-05-16T18:21:02Z Indexed on 2010/05/16 20:10 UTC
Read the original article Hit count: 263

Filed under:
|

CommuncationException was unhandled

The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

here is my svc.map file

<?xml version="1.0" encoding="utf-8"?>
<ServiceReference>
    <ProxyGenerationParameters
        ServiceReferenceUri="http://d3w9501/SimpleWCF/SimpleWCF.svc"
        Name="svc"
        NotifyPropertyChange="False"
        UseObservableCollection="False">
    </ProxyGenerationParameters>
    <EndPoints>
        <EndPoint
            Address="http://d3w9501.americas.hpqcorp.net/SimpleWCF/SimpleWCF.svc"
            BindingConfiguration="BasicHttpBinding_ISimpleWCF"
            Contract="TestSimpleWCF.svc.ISimpleWCF"
            >
        </EndPoint>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_ISimpleWCF" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"  >
          <security mode="None" />
        </binding>
      </basicHttpBinding>
    </bindings>    
    </EndPoints>
</ServiceReference>

© Stack Overflow or respective owner

Related posts about wcf

Related posts about c#2.0