Hi Jones!
It is actually ASP .Net session.

Before implementation of IoC and DI in my application, Membership
Provider which is an OoTB (Out of the box) tech in ASP .NET MVC worked
fine. Since I implement IoC and DI by Castle Windsor It does not work
properly.

The problem I have discovered is as followed:

I have registered my custom MembershipProvider in windsor container.

First when my ASP .NET MVC application runs, the default ctor of my
provider runs which the Initialize() methods runs too. Then when I
will inject a dependecy to my provider, provider's other ctor which
injects the dependency will be called and I get a new provider
actually. How can I avoid this problem?

Thanks for your help
Sheri

On 28 Jan, 21:30, 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.

Reply via email to