I am supporting an old Webforms website application.
I have several mission critical data items that are placed in Application State at execution of Application_Start,
and only Application_Start.
I am facing a situation where I need to modify those data items by forcefully running Application_Start.
The question I have is, does a recycle of the Application Pool cause Application_Start to execute either directly or as a downstream consequence of recycling.
I am aware that a recycle causes Application State to be invalid.
he question I have is, does a recycle of the Application Pool cause Application_Start to execute either directly
As far as i know, the Application_Start gets called on the first request after recycling when the application is actually loaded by IIS.
Best regards,
Sam
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
109 Points
374 Posts
Application Pool Recycling and Application_Start
Mar 16, 2020 09:37 PM|Madog|LINK
I am supporting an old Webforms website application.
I have several mission critical data items that are placed in Application State at execution of Application_Start, and only Application_Start.
I am facing a situation where I need to modify those data items by forcefully running Application_Start.
The question I have is, does a recycle of the Application Pool cause Application_Start to execute either directly or as a downstream consequence of recycling.
I am aware that a recycle causes Application State to be invalid.
Thanks
Contributor
3370 Points
1409 Posts
Re: Application Pool Recycling and Application_Start
Mar 17, 2020 09:34 AM|samwu|LINK
Hi Madog,
As far as i know, the Application_Start gets called on the first request after recycling when the application is actually loaded by IIS.
Best regards,
Sam