The content you're reading is getting on in years
This post is on the older side and its content may be out of date.
Be sure to visit our blogs homepage for our latest news, updates and information.
This article could help you investigate slower startup times when deploying your asp.net application to your live environments.
Let's start with some basics of how an ASP.NET website is hosted in the w3wp.exe process created by the IIS for each application pool.
Our experience shows that in most of the cases when uploading a websites to your live environment the web site is restarted several times (the application domain which resides in the application pool worker process is unloaded several times). Since the dlls of all asp.net applications are loaded from the temporary asp.net folder when the application starts it will first make sure that the files in the bin folder are the same as the files in the temporary asp.net folder. And if the application is on the large side this operation could happen several times during the file write operation done by the site deployment. This in terms causes more input output operations for the hard drive which slows down the file writing operation even more prolonging the effect.
To prevent this you need to change the following settings in the web.config. The highlighted values must be higher than the total time taken by the file writing operation in seconds.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<httpRuntime waitChangeNotification="60" maxWaitChangeNotification="60" />
</system.web>
</configuration>
Here is more info for those configurations in MSDN:
Momchil Mitev is currently leading the Sitefinity R&D team at Telerik. He joined the company in 2008 as a web developer helping the internal business systems teams and later moved to the Sitefinity division. Previous responsibilities include leading the DevOps team in Telerik, helping with continuous delivery implementations.
Let our experts teach you how to use Sitefinity's best-in-class features to deliver compelling digital experiences.
Learn MoreSubscribe to get all the news, info and tutorials you need to build better business apps and sites
Progress collects the Personal Information set out in our Privacy Policy and the Supplemental Privacy notice for residents of California and other US States and uses it for the purposes stated in that policy.
You can also ask us not to share your Personal Information to third parties here: Do Not Sell or Share My Info
We see that you have already chosen to receive marketing materials from us. If you wish to change this at any time you may do so by clicking here.
Thank you for your continued interest in Progress. Based on either your previous activity on our websites or our ongoing relationship, we will keep you updated on our products, solutions, services, company news and events. If you decide that you want to be removed from our mailing lists at any time, you can change your contact preferences by clicking here.