boujnah5207 / sharp-architecture

Automatically exported from code.google.com/p/sharp-architecture
Other
0 stars 0 forks source link

Having NHibernateSession initialized in Application_Start is problematic on IIS7 #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In RC 2, I moved the NHibernateSession initialization to the
Global.Application_Start from Global.Init, where it was before.  I was
doing this because Init is called once for each instance of the
HttpApplication that gets created while Application_Start is only ever
called once
(http://msdn.microsoft.com/en-us/library/system.web.httpapplication.aspx).
 Unfortunately, calling NHibernate.Init() in Application_Start causes
problems on IIS 7 with an exception related to
http://www.google.com/search?hl=en&q=PipelineStepManager+ResumeSteps&btnG=Search
.
 So I'm thinking of moving it back to the Init() method but only want it
called once.  I've applied a patch that I'd like reviewed and/or commented on.

Original issue reported on code.google.com by wmccaffe...@gmail.com on 10 Mar 2009 at 12:33

Attachments:

GoogleCodeExporter commented 9 years ago
Resolved with rev. 387.  Effect may be viewed at http://sharp-
architecture.googlecode.com/svn/trunk/src/NorthwindSample/app/Northwind.Web/Glob
al.as
ax.cs

Original comment by wmccaffe...@gmail.com on 10 Mar 2009 at 12:29