- September 17, 2021
- Posted by: administrator
- Category: Windows Servers
In an IIS (version 10.0) webserivce under Windows 10, you know, the default time-out period is 110 seconds. I was trying to extend the time-out duration to 200 seconds (3 minutes 20 seconds).
I got a hyperlink https://stackoverflow.com/questions/2414441/how-to-increase-request-timeout-in-iis/51010915 for a solution to increase the IIS webservice time-out duration, on my Win10 Laptop, but all of the approached failed to make even a second extension!
In summary, I have applied the following approaches:
1) Set the “executionTimeout” value to be 200 seconds in the web.config file and a specific .aspx page file in a webservice application.
For example,
<system.web>
<httpRuntime executionTimeout="200" />
</system.web>
2) adjust the server webFarm configuration in the Win10 configuration file %WinDir%\System32\Inetsrv\Config\applicationHost.config
For example,
<webFarm name="${SERVER_NAME}" enabled="true">
<server address="${SERVER_ADDRESS}" enabled="true">
<applicationRequestRouting httpPort="${SERVER_PORT}" />
</server>
<applicationRequestRouting>
<protocol timeout="${TIME}" />
</applicationRequestRouting>
</webFarm>
3) set the “connection time out” value in IIS “Advance Settings”. The detailed operations are shown below:
- Open your IIS
- Go to “Sites” option.
- Mouse right click.
- Then open property “Manage Web Site“.
- Then click on “Advance Settings“.
- Expand section “Connection Limits“, here you can set your “connection time out“
4) Run the following Power Shell command:
Set-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST/Default Web Site' -filter "system.web/httpRuntime" -name "executionTimeout" -value "00:03:20"
5) Execute the following AppCmd commands:
appcmd.exe set config "Default Web Site" -section:system.web/httpRuntime /executionTimeout:"00:03:20"