
An ASP.NET Timeout Error Occurs After Two Minutes of Report Processing
For a report server that runs in SharePoint integrated mode, you might encounter an ASP.NET time-out error for long-running reports that require more processing time than the default time-out specifies. By default, the ASP.NET time-out is approximately two minutes. Reports that need more than two minutes to process will quit unexpectedly and the Windows SharePoint Services error page will appear with the following error: “An unexpected error has occurred.”
If you think this error is due to a time-out issue, you can work around the error by adding an httpRuntime executionTimeout attribute to the Web.config file of the SharePoint Web application.
Be sure to provide a value that is sufficient to complete processing for long-running reports. For a native mode report server, the default value is 9000 seconds for a report server and Report Manager. Consider choosing a similar value when you specify executionTimeout for the SharePoint Web application.
To change the timeout value for a SharePoint Web application:
-
Go to <drive>:\inetpub\wwwroot\wss\VirtualDirectories\<dir>. The directory name is based on the port number used to access the SharePoint site. If the SharePoint site uses port 80, the path will be \inetpub\wwwroot\wss\VirtualDirectories\80.
-
Open Web.config.
-
Search for httpRuntime.
-
Add the executionTimeout value. The following examples provides an illustration of syntax that is valid for this attribute:
<httpRuntime maxRequestLength="51200" executionTimeout = "9000" />
For more information, see httpRuntime Element ( ASP.NET Settings Schema) on MSDN.
If you have deployed multiple applications in a SharePoint farm, repeat the previous steps for each Web.config file in the farm. This requirement applies to all the SharePoint Web application Web.config files in the subdirectories under <drive>:\inetpub\wwwroot\wss\VirtualDirectories. It also applies to Web.config files for applications in the farm that are installed on different computers.