Size limitation using wcf portal.

Size limitation using wcf portal.

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


checlark posted on Wednesday, November 28, 2007

I am using wcf portal and getting the following error. "The maximum message size quota for incoming messages (65536) has been exceeded". I am using windows xp and I found some info on this problem but the solutions offered didn't seem to work. It is obvious I need to increase the size limit, but where should that change be made?

RockfordLhotka replied on Wednesday, November 28, 2007

More web-savvy people than me can probably provide a better answer.

But there are several places this could happen. The most common is at the ASP.NET level itself - in web.config you can add an entry in <system.web> to control the max message size.

    <httpRuntime executionTimeout="300" maxRequestLength="16384" />

Curelom replied on Wednesday, November 28, 2007

In your wcf binding on the server, and possibly on the client as well, put in the attribute maxReceivedMessageSize="165530" or whatever value you want.  You can find an example at the bottom of this post, though, it has a lot of other crap in there that I don't think you would need. http://forums.lhotka.net/forums/post/17629.aspx

 

Copyright (c) Marimer LLC