shutdownReason:ConfigurationChange,但只更改了静态文件?

时间:2011-10-03 09:31:22

标签: asp.net iis-7.5

我在IIS 7.5和ASP.NET 4上使用最新的官方更新。我正在记录所有应用程序关闭的原因。一切正常,但是因为一周会记录奇怪的关机原因。

现在,在服务器上更新静态文件时会发生这种情况。 示例日志:

shutDownMessage:

Change Notification for critical directories.  bin dir change or directory rename
HostingEnvironment initiated shutdown 
HostingEnvironment caused shutdown  
Change Notification for critical directories.  bin dir change or directory rename  
Change Notification for critical directories.  bin dir change or directory rename
... (50 lines !) 
Change in X:\IISTemp\ASPNET4Compilation\root\c6474edd\e8b7124f\hash\hash.web
Change Notification for critical directories.  bin dir change or directory rename  
Change Notification for critical directories.  bin dir change or directory rename  
... (20x !) 
CONFIG change  
CONFIG change  
CONFIG change
     

shutdownReason:BinDirChangeOrDirectoryRename

     

shutDownStack:

at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)  
at System.Environment.get_StackTrace()  
at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal()
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.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)  
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()  
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

通过更新时间同步设置已解决此问题。