Friday, January 14, 2011

The connection was reset The connection to the server was reset while the page was loading.

I just ran into this exact same situation. It turned out to be an asp.net issue, rather than a CS issue. By default ASP.NET only allows files upto 4 Mb to be uploaded.

It got fixed by adding the following to the web.config file (inside the element)


httpRuntime executionTimeout="600" maxRequestLength="51200" />

This specifies a timeout of 10 minutes and max filesize of 50Mb.

Hope this helps

No comments: