Unexpected Errors When Submitting Large Web Pages

You may encounter unexpected errors when you click the submit button on a large Web page. For example, you may see the error “The page cannot be displayed” or a similar error in the Web browser.

Check the application log in the Windows Event Viewer.

Look for the following warning:

Event code: 3004

Event message: Post size exceeded allowed limits.

This warning means that you need to increase the value of the parameter maxRequestLength in the Web.config file in your presentation project. In particular, add a line similar to the following inside the <system.Web> tag:

<httpRuntime maxRequestLength="16384"/>

The value is in KB. The default value is 4096 (4mb).