Disable IIS Idle Timeouts in Azure Web Role
问题 To prevent AppPool recycling every 20 minutes, I'd like to remove IIS AppPool Idle Timeouts when my Azure Web Role starts. My website is a Web Application Project. How do I do this? 回答1: Create a startup task to disable the idle timeout: In the website project referenced by your web role project, add a file Startup.cmd to the root folder. In the properties for Startup.cmd , set Copy to Output Directory to Copy if newer . Add this line to Startup.cmd : if exist %windir%\system32\inetsrv\appcmd