Mar 10, 2006 09:33 AM|phreshview|LINK
Ever since I've migrated from ASP.NET 1.1 to 2.0, I've noticed that the application restarts on its own, at random times, due to no particular reason.
I'm not using an Antivirus scan, I am not changing any bin or config files, I'm not using app pool recycling, and I'm not getting unhandled exceptions that show up in the Event Viewer logs.
As this has been happening for over 2 months now, I finally found the code necessary to log out exactly what is causing the AppDomain to restart, and every time I get the following message:
_shutDownMessage=Overwhelming Change Notification in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config
HostingEnvironment caused shutdown
_shutDownStack= at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Web.Hosting.HostingEnvironment.InitiateShutdownWorkItemCallback(Object state)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)
I am not changing config files in the directory above. As I stated, there is no Antivirus running or anything else that touches these files.
Is this due to the fact that I am often changing files in subdirectories beneath the web site root? If so, why does the message talk about the v2.0 folder changing? Can the functionality of automatically restarting the application be disabled? I need
to change, add, and delete files in directories beneath the web site root and would prefer not to migrate them outside into a non-Internet directory. As these files are not ASP.NET files, why should changing them cause an app restart?
If this restarting problem is not due to changing files inside the web site, is it a bug? Is Microsoft working on a hot fix?
I've changed my session management to use the State Server, as having to log in at random times during the day is just unacceptable in a production environment. Restarts can happen as often as 10 times a day or as little as once per day. It seems to only
occur during the week and hardly ever on weekends.
It seems like there are others out there with this same problem. I am overall happy with the new version of ASP.NET, but this problem is simply driving me crazy with no clear answer in sight.
Any help on this would be greatly appreciated.