sergey wrote:
Sorry but I don't see a single reference to NHibernate in the stack trace. Why do you think it's NHibernate getting corrupted and not your code? If NHibernate throws some kind of exception, please post it here (including inner exceptions and full stack trace) and somebody will help, but otherwise it looks like you expect people here to debug your application for you for free.
If you had seen the error stack and error was originating from the DAL, where the nHibernate is present. The reason is that even running the site for 48 hours in debug mode under the VS2005 does not crash it but it crash on the IIS hosting server. As we are not able to crash it in the debug mode therefore we have not been able to identify the root cause of it.
But the careful analysis of the code especially the DAL layer we feel that as the session.factory is a static object therefore one of the reason for the server not coming back live after the DB server failure is that the static session.factory state is saved when the DB server crashes and is not getting updated even after the DB server comes back live again.