In Strategy Web running on Windows and IIS, the following exception takes place when importing a large prompt list from .csv file:
Server Error in '/Strategy' Application.
--------------------------------------------------------------------------------
Maximum request length exceeded.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Maximum request length exceeded.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
System.Web.HttpRequest.GetEntireRawContent() +11399799
System.Web.HttpRequest.FillInFormCollection() +235
System.Web.HttpRequest.get_Form() +157
System.Web.HttpRequest.get_HasForm() +11401812
System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +141
System.Web.UI.Page.DeterminePostBackMode() +100
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +259
The maxRequestLength httpRuntime attribute indicates the maximum file upload supported by ASP.NET. This value has been exceeded.
Follow the steps below in order to adjust the value of the maxRequestLength httpRuntime attribute:
1) Edit the web.config configuration file located by default in C:\Program Files (x86)\Strategy\Web ASPx.
2) Insert the line httpRuntime maxRequestLength="32768, as shown:
Sample Code/Error:
<configuration> <system.web> <httpRuntime maxRequestLength="32768" /> </system.web></configuration>