EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB43960: "Maximum request length exceeded" exception when importing a prompt list from .csv file in MicroStrategy Web running on Windows and IIS


Community Admin

• Strategy


This technical note describes the fix for the error "Maximum request length exceeded" when importing a large .csv file. A line needs to be inserted on the web.config file to increase this value.

Symptom

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

 
 

Cause

The maxRequestLength httpRuntime attribute indicates the maximum file upload supported by ASP.NET. This value has been exceeded.
 
 

Action

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>

 
3) Restart the Internet Information Services service
 
 
NOTE: The size value is specified in KB, the maximum recommended value is 32768KB since higher values could make the Internet Information Services unstable. 
 


Comment

0 comments

Details

Knowledge Article

Published:

April 4, 2017

Last Updated:

April 4, 2017