And this only happens on IIS 7, when i run the application on my
machine (asp.net developer server) all working fine. there is only one
connection to the db and when i exit the application the connection to
the sql server is closed

On Sep 16, 7:11 pm, Luka <[email protected]> wrote:
> ok, but how?
> my sessions are managed by structuremap like this:
>
>  For<ISessionFactory>().Singleton().Use(cfg.BuildSessionFactory());
>  For<ISession>().HttpContextScoped().Use(ctx =>
> ctx.GetInstance<ISessionFactory>().OpenSession());
>
> and in global.asax. Application_EndRequest I do:
> ObjectFactory.ReleaseAndDisposeAllHttpScopedObjects();
>
> how to know if all the sessions have been disposed? and then how to
> close/dispose them?
>
> On Sep 16, 6:30 pm, Jason Meckley <[email protected]> wrote:
>
>
>
>
>
>
>
> >www.nhprof.com.
>
> > make sure you are disposing of your sessions when you are finished
> > with them.
>
> > On Sep 16, 11:21 am, Luka <[email protected]> wrote:
>
> > > Hi, is there a way to see all open nhibernate session in the
> > > application?
>
> > > Why?
> > > Because, I am getting this error in my MVC application:
> > > Timeout expired. The timeout period elapsed prior to obtaining a
> > > connection from the pool. This may have occurred because all pooled
> > > connections were in use and max pool size was reached.
>
> > > I have done this 
> > > configuration:http://www.kevinwilliampang.com/2010/04/06/setting-up-asp-net-mvc-wit...
>
> > > Please help.

-- 
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.

Reply via email to