5/9/2014 - 5:11 AM

Increase connection timeout setting in web-config file in kentico

Increase connection timeout setting in web-config file in kentico

Go to the web.config file at the root level:
To increase the IIS Connection timeout value, change the following value
add name="CMSConnectionString" connectionString="Persist Security Info=False;database=xxx;server=xxx;user id=xx;password=xxx;Current Language=English;Connection Timeout=<Increase this value>;" />

Change the below: 
    <httpRuntime maxRequestLength="51200" requestValidationMode="2.0"/>
    <httpRuntime executionTimeout="180" maxRequestLength="51200" requestValidationMode="2.0"/>

This will increase it to 3 minutes.

Also look at the below setting (Very important Setting)

Adjusting File Size Limit in IIS 7
The problem is that in IIS 7 on Windows 2008 Server, the web application will reject any file that is larger than 30 MB. This is a default limitation of IIS. You can increase the maximum file size by adding the following code to <system.webServer> in the web.config file:
  <requestLimits maxAllowedContentLength=”2000000000″ />