App_LocalResources : premiers chargement déclenche un restart de l'application
Bonjour,
Après chaque publication (publish dans VS2013 & IIS 8.0) de mon application web (form based) chaque chargement de page qui contient un fichier ressource déclenche un restart de l'application. Je dois donc me reconnecter autant de fois qu'il y a de pages sur mon site si je veux qu'il soit chargé correctement. (le restart mettant fin à ma session utilisateur)
Pourquoi ce comportement ?
Comment faire pour éviter ce comportement ?
Voici mon log d'erreur :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| *ERROR 2015-01-22 13:14:10,230 InfoLogger Application ending...
*ERROR 2015-01-22 13:14:10,230 InfoLogger Shutdown Reason : HostingEnvironment
*ERROR 2015-01-22 13:14:10,230 InfoLogger The hosting environement shutdown the application.
*ERROR 2015-01-22 13:14:10,230 InfoLogger Change Notification for critical directories.
App_LocalResources dir change or directory rename
HostingEnvironment initiated shutdown
HostingEnvironment caused shutdown
StackTrace : at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Environment.get_StackTrace()
at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal()
at System.Web.Hosting.HostingEnvironment.InitiateShutdownWithoutDemand()
at System.Web.HttpRuntime.ShutdownAppDomain(String stackTrace)
at System.Web.HttpRuntime.OnCriticalDirectoryChange(Object sender, FileChangeEvent e)
at System.Web.FileChangesMonitor.OnCriticaldirChange(Object sender, FileChangeEvent e)
at System.Web.DirectoryMonitor.FireNotifications()
at System.Web.Util.WorkItem.CallCallbackWithAssert(WorkItemCallback callback)
at System.Web.Util.WorkItem.OnQueueUserWorkItemCompletion(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() |
Merci :)