My SP web application use FBA authentication (AD and aspnetSQLmembership providers). I want log in to SP site from custom SP login page. In code-behind page (my class inherit FormsSignInPage(ns:Microsoft.SharePoint.IdentityModel.Pages)I wrote
MembershipUserCollection msc = Membership.FindUsersByEmail(someEmailString);
if (msc != null && msc.Count == 1)
{
foreach (MembershipUser user in msc)
{
userName = user.UserName;
}
FormsAuthentication.RedirectFromLoginPage(userName, false);
}
Problem: When debugger come to "MembershipUserCollection msc = Membership.FindUsersByEmail(someEmailString);" it breaks and I get message "Exception Details: System.NotImplementedException: The method or operation is not implemented.". Should I somewhere in code need to specify which membership provider should be used (AD od SQL) or what?!?
Please, any suggestion will be appreciated.