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

Mike's Badges

Follow on Twitter
View mike's profile on slideshare
Add to Technorati Favorites
CW Blog Awards

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
(C) Mike Taulty, 2009. All rights reserved. The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems