Is there anyway to skip app domain recycle during App_Code changes?

550 views Asked by At

I am working on a change request to one of our ASP.NET projects, where most of the code change/update required on App_Code folder. But for each change for App_Code files leads to app domain recycles and then repeated logins. I want to avoid this for development environment.

what i tried:

  • Increased sessionState timeout.
  • Increased Idle Time-out for Apppool in IIS[7.5].
  • I didn't change sessionState mode from "InPorc" as it causing some errors[I think we need to declare some classes as serializable with StateServer and SQLServer. I don't want to make changes other parts of the project where i am not working].

I went through below posts, got idea that App_Code changes will cause app domain recycle but i am looking for solution to avoid it[if possible].

Losing Session State

What causes an application pool in IIS to recycle?

http://blogs.msdn.com/b/tess/archive/2006/08/02/asp-net-case-study-lost-session-variables-and-appdomain-recycles.aspx

Update:

Application running on IIS7.5 and Windows 7 Professional with Service Pack 1

2

There are 2 answers

0
user3966432 On BEST ANSWER

We can't skip recycling an app domain without changing the sessionState mode to other than "InProc"

https://forums.iis.net/p/1226481/2103541.aspx?Is+there+anyway+to+skip+app+domain+recycle+during+App_Code+changes+

0
Brian Gilreath On

It looks like there was a MS hotfix for this problem:

https://support.microsoft.com/en-us/kb/3052480