WCF Configuration Problem (buffer size)

WCF Configuration Problem (buffer size)

Old forum URL: forums.lhotka.net/forums/t/6688.aspx


Luzius posted on Friday, March 27, 2009

Hi all,

I currently have a WCF configuration problem. When saving my business-object graph, I'm getting a System.ServiceModel.ProtocolException "The remote server returned an unexpected response: (400) Bad Request.".
This only happens if the object graph reaches a certain size.

I figured out, that it has something todo with a default buffer size in the WCF configuration.

Does anyone know which config setting I have to set, to increase the buffer size?

Thanks alot
Luzius

Host-Config:
...
<system.serviceModel>
   <
services>
      <
service name="Csla.Server.Hosts.WcfPortal">
         <
endpoint address="" contract="Csla.Server.Hosts.IWcfPortal" binding="wsHttpBinding" />
      </
service>
   </
services>
   <
behaviors>
      <
serviceBehaviors>
         <
behavior name="Tasks.WcfHost.Service1Behavior">
            <serviceMetadata httpGetEnabled="true"/>
            <serviceDebug includeExceptionDetailInFaults="false"/>
         </
behavior>
      </
serviceBehaviors>
   </
behaviors>
</
system.serviceModel>
...

Client-Config:
...
<system.serviceModel>
   <
client>
      <
endpoint name="WcfDataPortal
         
address="http://localhost/Tasks.WcfHost/WcfPortal.svc"
         binding="wsHttpBinding
         
contract="Csla.Server.Hosts.IWcfPortal"/>
   </client>
</system.serviceModel>
...

Curelom replied on Friday, March 27, 2009

This post might help

http://forums.lhotka.net/forums/thread/21422.aspx

Luzius replied on Friday, March 27, 2009

Hi Curelom,

thanks alot, that works perfectly.

 

Luzius

Copyright (c) Marimer LLC