by Stephen Horsfield
18. January 2008 10:47
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
- Categories: Software Development, ASP.NET, IIS, EPiServer
- Additional keywords: import, POST, error, upload limit
- Technorati Tags:
software development,
IT Management,
.NET,
ASP.NET,
EPiServer,
import,
problem