views:

260

answers:

1

Hi,

On an ASP.NET Web Application I have an upload file functionality. I'm restricting the file size up to 10 MB by configuring the inside web.config the maxAllowedContentLength attribute. (I'm using IIs 7.0 BTW).

It get the desired HTTP Error when I access the application from the local machine:

HTTP Error 404.13 - Not Found The request filtering module is configured to deny a request that exceeds the request content length.

When I access the application from another machine I get

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

How can I get a more descriptive error when my application is accessed remotely?

Thanks,

Maria.

A: 

Hey I was having a the same problem. I put in both of these attributes and it worked for me. If someone has an explanation that would be awesome.

<httpRuntime maxRequestLength="102400" executionTimeout="3600" />

http://msdn.microsoft.com/en-us/library/e1f13641(VS.71).aspx

Regards, Kieran

Kieran