ASP.NET spins up a second app pool before the first is finished shutting
down, therefore it still has a lock on those files.

On Wed, Oct 31, 2012 at 9:51 AM, Daventry <alberto.ri...@gmail.com> wrote:

> Hi,
>
> We're getting below error when accessing a web app. The error disappears
> after refreshing the page a couple of times. It happens from time to time,
> not just after a deployment.
>
> Has anyone seen this behavior before? BTW we're not deleting the queue
> folders on startup.
>
> And so that you know, these queues are created on a shared drive because
> we're not allowed to create files/folders on the machine the web app is
> runnig on. We've already made sure the credentials are correctly set up. As
> I said before, after refreshing everything works out well.
>
> Thanks.
>
>
> *Error FileAccessDenied (JET_errFileAccessDenied, Cannot access file, the
> file is locked or in use)* ******
>
> *Description: *An unhandled exception occurred during the execution of
> the current web request. Please review the stack trace for more information
> about the error and where it originated in the code.
>
> *Exception Details: *Microsoft.Isam.Esent.Interop.EsentErrorException:
> Error FileAccessDenied (JET_errFileAccessDenied, Cannot access file, the
> file is locked or in use)
>
> *Source Error:* ****
>
> An unhandled exception was generated during the execution of the current
> web request. Information regarding the origin and location of the exception
> can be identified using the exception stack trace below. ****
>
>
> *Stack Trace:* ****
>
> ** **
>
> [EsentErrorException: Error FileAccessDenied (JET_errFileAccessDenied,
> Cannot access file, the file is locked or in use)]****
>
>    Microsoft.Isam.Esent.Interop.Api.Fail(Int32 err) +57****
>
>    Microsoft.Isam.Esent.Interop.Api.JetInit(JET_INSTANCE& instance) +28***
> *
>
>    Rhino.PersistentHashTable.PersistentHashTable.Initialize() +53****
>
> ** **
>
> [InvalidOperationException: Could not open cache: *
> \\#####\ICEBus\client_subscriptions.esent\client_subscriptions.esent*]****
>
>    Rhino.PersistentHashTable.PersistentHashTable.Initialize() +207****
>
>    Rhino.ServiceBus.RhinoQueues.PhtSubscriptionStorage.Initialize() +35***
> *
>
>    Rhino.ServiceBus.Impl.DefaultServiceBus.Start() +430****
>
>    Rhino.ServiceBus.Hosting.DefaultHost.Start(String asmName) +21****
>
>    Rhino.ServiceBus.Hosting.DefaultHost.Start() +110****
>
>    CS.RAR.ICE.Web.Global.Application_Start(Object sender, EventArgs e) in
> g:\D\CS.RAR.ICE\CS.RAR.ICE.Web\Global.asax.cs:37****
>
> ** **
>
> [HttpException (0x80004005): Could not open cache: *
> \\###\ICEBus\client_subscriptions.esent\client_subscriptions.esent*]****
>
>
> System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext
> context, HttpApplication app) +9168509****
>
>    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr
> appContext, HttpContext context, MethodInfo[] handlers) +131****
>
>    System.Web.HttpApplication.InitSpecial(HttpApplicationState state,
> MethodInfo[] handlers, IntPtr appContext, HttpContext context) +194****
>
>    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
> appContext, HttpContext context) +339****
>
>    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
> appContext) +253****
>
> ** **
>
> [HttpException (0x80004005): Could not open cache: *
> \\#####\ICEBus\client_subscriptions.esent\client_subscriptions.esent*]****
>
>    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9087676**
> **
>
>    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97*
> ***
>
>
> System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
> wr, HttpContext context) +256****
>
> --
> You received this message because you are subscribed to the Google Groups
> "Rhino Tools Dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rhino-tools-dev/-/ae4ZqpYd10cJ.
> To post to this group, send email to rhino-tools-dev@googlegroups.com.
> To unsubscribe from this group, send email to
> rhino-tools-dev+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rhino-tools-dev?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to rhino-tools-dev@googlegroups.com.
To unsubscribe from this group, send email to 
rhino-tools-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to