Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How can I get the SPContext on the forms login page (/_forms/default.aspx)? Looking up SPContext.Current or SPContext.GetContext(HttpContext.Current) is always null. I need to retrieve the parent WebApplication and IIS Settings prior to logon in order to retrieve a Form Membership Provider within the SecurityTokenService Application's web.config.

I'm open to alternatives to identifying the current Web Application and Zone in order to retrieve the Forms Membership Provider.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

The MembershipProvider and RoleProvider classes provide the name (this.Name) of the membership/role provider.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.