Hi, Humberto. Thanks for your interest. Actually, we are using only WebUserControls, that are loaded inside Project Web Access. So, the deployment proccess consists only in copying the user controls to a folder called UserControls, then copy all external dll's to 'app_bin' folder and, finally, the hibernate.cfg.xml file to the 'bin' folder.
I don't disagree that this could not be related to NHibernate, but the fact is that this is our only project with this error and the error messages always complains about something NH-related. It seems to me that, somewhy, when a user access the application and it's inactive for a long time (first access of the day, for an example), IIS tries to load NH using the user's credentials. In fact, one day there was a message complaining about access denied on hibernate.cfg.xml, and the other day was about NHibernate.dll. What we have done and seems to be working (maybe I'm speaking too early) is to give NTFS 'Read and Execute' permission on 'bin' and 'app_bin' folders to 'Domain Users' group. That is far from a good solution (actually, for me, it's far even from being a solution) but that't what we could do to handle the situation. Another possible (and poor) solution is to schedule 'iisreset' to run every morning. Have you seen anything similar to this? Regards, Anderson On Feb 11, 9:51 pm, Humberto Marchezi <[email protected]> wrote: > Hi, > > Well, I never heard of and had this problem all this time with NHibernate. > Actually it does not seem to be related to NHibernate. > There is probably something wrong when you try to deploy your web app. > In my case all external dlls ( which includes NHibernate ) are located in a > separated directory and all references in to these dlls are marked as > 'copy local'. Maybe it can solve your problem. > > On Wed, Feb 11, 2009 at 2:37 PM, Anderson dos Santos Pimentel < > > > > [email protected]> wrote: > > > Hi. I have this strange error (almost) on a daily basis, but can't > > figure out what's causing it: > > > Could not load file or assembly 'NHibernate, Version=1.2.0.4000, > > Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its > > dependencies. Access is denied > > > The solution is kind of difficult because of two main factors: > > 1. The error occurs only on production environment and I can't > > reproduce it on my development environment, so I can't test and play > > around with configuration settings without causing even more trouble > > to the users; > > 2. It seems to occurs randomly. Usually the first user that access > > the application (ASP.NET) that day triggers the error that can be > > solved only by running 'iisreset' on the server, but some days the app > > is OK during all day long. > > > I've found something very similar on the following link, but with no > > solution either: > >http://bytes.com/groups/net-asp/566517-access-denied-nhibernate > > > Any help would be appreciated. > > > Thanks in advance, > > > Anderson > > -- > Humberto C Marchezi > --------------------------------------------------------- > Master in Electrical Engineering - Automation > Software Consultant and Developer > at the Town Hall of Vitória --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" 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/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
