By default IIS 7 uses the requests identity so the first request when the
bus starts up the user performing the request doesn't have permission. I
usually setup IIS to use the app pool identity rather than the users
identity. You'll find the settings under Basic Settings... Connect As...

On Tue, Aug 7, 2012 at 9:18 AM, Daventry <[email protected]> wrote:

> Hi,
>
> I'm getting below error when running our web app under IIS - works out
> well under the ASP.NET development server though.
>
> I have given full access permissions to the account IIS
> AppPool\DefaultAppPool on the web project folder
> - C:\Dev\svn\trunk\CS.RAR.ICE\CS.RAR.ICE.Web
>
> Any ideas?
>
> Thanks.
>
> [EsentErrorException: Error FileAccessDenied (JET_errFileAccessDenied,
> Cannot access file, the file is locked or in use)]
>    Rhino.PersistentHashTable.PersistentHashTable.Initialize() +161
>
> [InvalidOperationException: Could not open cache:
> C:\Dev\svn\trunk\CS.RAR.ICE\CS.RAR.ICE.Web\client_subscriptions.esent\client_subscriptions.esent]
>    Rhino.PersistentHashTable.PersistentHashTable.Initialize() +378
>    Rhino.ServiceBus.RhinoQueues.PhtSubscriptionStorage.Initialize() +59
>    Rhino.ServiceBus.Impl.DefaultServiceBus.Start() +595
>    Rhino.ServiceBus.Hosting.DefaultHost.Start(String asmName) +36
>    CS.RAR.ICE.Web.Global.Application_Start(Object sender, EventArgs e) in
> C:\Dev\svn\trunk\CS.RAR.ICE\CS.RAR.ICE.Web\Global.asax.cs:51
>
> [HttpException (0x80004005): Could not open cache:
> C:\Dev\svn\trunk\CS.RAR.ICE\CS.RAR.ICE.Web\client_subscriptions.esent\client_subscriptions.esent]
>
> System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext
> context, HttpApplication app) +4058613
>    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr
> appContext, HttpContext context, MethodInfo[] handlers) +191
>    System.Web.HttpApplication.InitSpecial(HttpApplicationState state,
> MethodInfo[] handlers, IntPtr appContext, HttpContext context) +352
>    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr
> appContext, HttpContext context) +407
>    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr
> appContext) +375
>
> [HttpException (0x80004005): Could not open cache:
> C:\Dev\svn\trunk\CS.RAR.ICE\CS.RAR.ICE.Web\client_subscriptions.esent\client_subscriptions.esent]
>    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11703856
>    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
>
> System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
> wr, HttpContext context) +4870677
>
>  --
> 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/-/Q6vzFSgyem4J.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en.

Reply via email to