Mike Taulty's Blog
Bits and Bytes from Microsoft UK
Silverlight 2 - WCF and MaxMessageReceivedSize

Blogs

Mike Taulty's Blog

Elsewhere

I tried specifying a MaxMessageReceivedSize in my config for a Silverlight WCF proxy today and it didn't seem to be getting picked up. Not sure what's going on there but if it helps anyone at any point then I just ended up doing this in code;

 ImageServiceClient proxy = new ImageServiceClient();
      BasicHttpBinding b = proxy.Endpoint.Binding as BasicHttpBinding;
      b.MaxReceivedMessageSize = 1024 * 1024 * 20;

and that worked fine for me ( although 20MB is perhaps overkill :-) ).

Update: I've been advised that the config file isn't read in Silverlight 2 B1 so don't waste too much time typing stuff into it :-)


Posted Fri, May 2 2008 4:43 AM by mtaulty

Comments

SilverlightShow.net wrote SilverlightShow.net
on Mon, May 5 2008 4:48 AM
<p>I tried specifying a MaxMessageReceivedSize in