Set Max Request Length. WCF MaxMessageSize

Posted on: Thu Oct 22 17:26:43 -0700 2009. Updated on: Thu Oct 22 17:28:00 -0700 2009.
Category: DotNet

I found this to be getting me when trying to set up a WCF service that was taking in a big object as a parameter. Even when setting the maxmessagesize in the wcf service config I would still get a weird error about a validation exception. The problem was the request being passed in was too big, so to allow for bigger requests you need to set the below. Note this goes under System.Web in the web.config




Comments:

Add a Comment:

simple_captcha.jpg
(human authentication)


Ads

Categories

About

Random foliage

This website is meant to be a reference for ASP Dot Net developers. The entries are a compilation of things I've figured out how to do and that I deem useful to keep of track for future reference. Assumptions: web development with: C Sharp (vb sucks), visual studio 05/08, .net 3.5, meant for programmers. Written by: James Reategui.