(X) Hide this SilverlightShow next training events: Secure & Personalize Your Silverlight App with WCF RIA Services. May 25th, 10 am PST. Sign up
XNA for Windows Phone 7 - a 3 day training by MCC Peter Kuhn. June 1-3, 9 am - 1.30 pm PST. Sign up early-bird for $199.
Skip Navigation LinksHome / Articles / View Article

Silverlight 2 - WCF and MaxMessageReceivedSize

+ Add to SilverlightShow Favorites
0 comments   /   aggregated from Mike Taulty's Blog on May 02, 2008  /  original article
(0 votes)
Categories: Tips and Tricks

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 :-)

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 1 and 6 and type the answer here: