Overview

I've been importing a live EPiServer site into a development environment for further work.  Normally, this works without problem, but this time I've been getting a POST error, but nothing informative.  What's happening?

Solution

A quick look at the event logs on the IIS server quickly identifies the problem: the file exceeds the upload limit.  Of course this is less likely to happen in a normal development run, but once there is a fair amount of data it fails.  If I hadn't spotted the error in the event log, I might have been stuck for some time.

The default ASP.NET upload limit is 4 MB, so if you need more you will have to change the web.config settings.  The element you have to change is the maxRequestLength attribute on the <system.web><httpRuntime> element.  The size is specified in KB, so for a 32 MB limit, use the following:

<system.web>
  <httpruntime maxrequestlength="32768" />
</system.web>

References

Versions

Metadata


Bookmark with :
Digg It! DZone StumbleUpon Technorati Reddit Del.icio.us Newsvine Furl Blinklist
posted @ Friday, January 18, 2008 10:47 AM | in EPiServer ASP.NET .NET Windows Server Software Development Windows XP

Comments

No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  


Please add 4 and 2 and type the answer here: