Timeout When Publishing InfoPath Form Template

When you ever run into a timeout issue when publishing large InfoPath forms to the server, then you should add/change some parameters in the web.config of the SharePoint WebApplication.

Usually this file is located here: C:\inetpub\wwwroot\wss\VirtualDirectories\<Portnumber>
Make sure that you make a backup of this file before you change anything in there.


The maximum request size in kilobytes. The default size is 4096 KB (4 MB).
The maxRequestLength property specifies the limit for the buffering threshold of the input stream.

A TimeSpan value that indicates the allowed execution time for the request. The default is 110 seconds.
The executionTimeout property indicates the maximum number of seconds a request is allowed to execute before being automatically shut down by ASP.NET.

Another place in the web.config file is somewhere below the section <securityPolicy>.
There you should also see an <httpRuntime> entry which you can update, too.