I believe this is a continuation from http://groups.google.com/group/nhusers/browse_thread/thread/1484173770410220. If this is correct the problem is MVC 1.0 + Windsor + NHibernate. the problem is how do you inject the current session into an implementation of MembershipProvider?
if Windsor controls the creation of your MembershipProvider than you can get the session into it. If Windsor doesn't, you need to find a way to access the MembershipProvider to pass in the current session before it's used. In either case it sound like the MVC framework is causing friction, Not NH or Windsor. I would ask in an MS MVC forum if there is a way to override the creation of a MembershipProvider. If this extension point exists, the rest is simple. get reference to container, resolve membership provider. On Jan 28, 3:30 pm, John Simons <[email protected]> wrote: > Sherri, > > Not too familiar with "Session Closed!" error, can you please describe what > exactly is the problem you are facing? > Are you talking about the ASP.Net Session or a database Session! > > Cheers > John > > ________________________________ > From: Sheri <[email protected]> > To: Castle Project Users <[email protected]> > Sent: Thu, 28 January, 2010 11:53:28 PM > Subject: Castle Windsor 2.1 and MembershipProvider (in ASP .NET MVC 1.0) > > Hello everybody! > > Does anybody know how to inject customized membership provider from > ASP .NET MVC 1.0 in Castle Windsor 2.1 container to avoid "Session > Closed!" error!? > > /Sheri > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Users" 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 > athttp://groups.google.com/group/castle-project-users?hl=en. > > > __________________________________________________________________________________ > Yahoo!7: Catch-up on your favourite Channel 7 TV shows easily, legally, and > for free at PLUS7.www.tv.yahoo.com.au/plus7 -- You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en.
