On a day to day basis I develop in Microsoft Content Management Server (MCMS 2002 SP1a). For most of what I’ve done editing the Metabase.xml file takes care of the problems I’ve had in uploading large files. Until today. A co-worker was entering content into a site that we are currently working on and he came across the “System.Web.HttpException:Maximum request length exceeded.” error. After a brief look to ensure that I had made the changes to the metabase I was reminded that there is also a machine.config file. Inside the machine.config file you need to set the maximum request to a value larger than 4096 (4MB). In our case we had a zip file that was ~140MB that we needed to add to resource manager. Open the machine.config (usually found in “C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG” but your setup may be different than mine) and look for the tag “<httpRuntime”. Within this tag just change the “maxRequestLength” to something large enough to handle your files.
.NET Maximum Request Length Exceeded
Saturday, June 11, 2005