开发者

Reasons for "bin dir change or directory rename" app restart? (Fixed i think)

Update / FIX

Well I did two things which seemed to have it work

  1. Changed my app pool's Advanced settings >> Process Model>> identity to "Network Service"
  2. Directed it to use a temp folder for compilation on the sites .net compilation settings. There is still a restart every once in a while but the session doesn't get lost, and all browsers can still connect.

This also worked: http://www.aaronblake.co.uk/blog/2009/09/28/bug-fix-application-restarts-on-directory-delete-in-asp-net/

I am building my web app in asp.net 4 and am having much trouble figuring out why my connection is timing out after about a minute (when browsed to - hosted using IIS 7). I have been informed that this is probably due to the web.config/directory being edited, and therefore the app being unloaded/restarted and the page dies. I am not aware of any code I wrote explicitly editing anything on the bin.

I am connecting to sql (through table adapters or SQLConnection Class) but I don't think that would do anything. Also I am using buttons which run as scripts.

I have set the restart on config change option to false in IIS with no avail still..

EDIT

Here are some event logs of the shutdown.

_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
Change Notification for critical directories.
bin dir change or directory rename

_shutDownStack=   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.Th开发者_高级运维reading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   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()

Have been straining my brain thinking of why bin would be getting changed. at a complete loss, nothing we wrote writes anything/changes anything in there knowingly

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜