I am using Visual Studio 2010/ASP.NET/C-Sharp website.
I basically had an ASP.NET FileUpload control, for which I needed to cater the exception thrown for the following message:-
Maximum request length exceeded.
The limitations are that I need to just restrict the user to upload one file in all because I have save the other details from some text-boxes into DB.
The maximum file size setting is set in the web.config as follows:-
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="41943040"/>
</requestFiltering>
</security>
</system.webServer>
And
<system.web>
<httpRuntime maxRequestLength="40960" requestV ...
Go to the complete details ...