ASP.NET MVC recompilation limit exceeded in 15 achieved hosting starts HostingEnvironment HostingEnvironment caused a stop

At some point, shortly after clicking on the code, we saw a lot of restarts happening in our web application, without registration, indicating a problem. So, I found this article: http://weblogs.asp.net/scottgu/433194 , and we added the Application_End registry, which immediately detected this:

_shutDownMessage = recompilation limit on 15 achieved HostingEnvironment triggered the shutdown of HostingEnvironment caused shutdown _shutDownStack = in System.Environment.GetStackTrace (Exception e, Boolean needFileInfo) in System.Environment.get_StackTrace () in System.Web.utn.Intebenit.ingebutnting.utebitnting.utebinutmentututinutnthing.utebutnthing.utebuthing.utebutntit .Web.Hosting.HostingEnvironment.InitiateShutdownWithoutDemand () in System.Web.HttpRuntime.ShutdownAppDomain (String stackTrace) in System.Web.Compilation.DiskBuildResultCache.ShutdownCallBack (State object) callbackContextIntecution ContextCallback, object state, logical preserveSyncCtx) in System.Threading.ExecutionContext.Run (ExecutionContext executeContext, ContextCallback callback, object state,boolean preserveSyncCtx) in System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () in System.Threading.ThreadPoolWorkQueue.Dispatch ()

, web.config

 <compilation debug="false" numRecompilesBeforeAppRestart="100">

! . , , , , .

- , / , ? !

+4
1

, , 15 15 , / .

- 1305. IIS = > = > = > , . , .

enter image description here

100, , , ( 29 ).

, :

:

, , optimizeCompilations Web.config true

:

ASP.Net

, , .. - , - , , ( - , ).

, , , ETW . , - https://blogs.msdn.microsoft.com/tess/2008/11/06/troubleshooting-appdomain-restarts-and-other-issues-with-etw-tracing/

: http://support.microsoft.com/kb/319947

, .aspx .ascx (, 61 ). , 15 15 , 61. , .

, , .

,

+4

Source: https://habr.com/ru/post/1651854/


All Articles