Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6350435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:48:32+00:00 2026-05-24T21:48:32+00:00

There is a login form with any authentication logic. I enter login and password,

  • 0

There is a login form with any authentication logic. I enter login and password, then I click “Login” and get error “The method or operation is not implemented” in this code line:

SecurityToken tk = SPSecurityContext.SecurityTokenForFormsAuthentication
  (
     new Uri(SPContext.Current.Web.Url),
     "MyUserProvider",
     "MyRoleProvider",
     this.txLogin.Text,
     this.txPassword.Text
  );

================================================

Server Error in '/' Application.

The method or operation is not implemented.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]: The method or operation is not implemented.

Stack Trace: 


[FaultException`1: The method or operation is not implemented.]
   Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.ReadResponse(Message response) +1161013
   Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr) +73
   Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst) +36
   Microsoft.SharePoint.SPSecurityContext.SecurityTokenForContext(Uri context, Boolean bearerToken, SecurityToken onBehalfOf, SecurityToken actAs, SecurityToken delegateTo) +26193297
   Microsoft.SharePoint.SPSecurityContext.SecurityTokenForFormsAuthentication(Uri context, String membershipProviderName, String roleProviderName, String username, String password) +26189452
   Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage.GetSecurityToken(Login formsSignInControl) +188
   Microsoft.SharePoint.IdentityModel.Pages.FormsSignInPage.AuthenticateEventHandler(Object sender, AuthenticateEventArgs formAuthenticateEvent) +123
   System.Web.UI.WebControls.Login.AttemptLogin() +152

But I have assembly with custom Membership and Roles Provider and all methods are implemented! Where is a mistake?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:48:34+00:00Added an answer on May 24, 2026 at 9:48 pm

    You may be calling base membership functions directly from your custom membership and roles provider, like:

    Membership.FindUsersByEmail("myemail@here.com");
    

    These will get handled by the default membership provider, which won’t be your membership provider, but will be the SPClaimsAuthMembershipProvider. SPClaimsAuthMembershipProvider doesn’t implement a lot of the base methods – they will return a not implemented exception.

    If you want to get the web app’s selected membership provider to reference, you can use the following code:

    public static string GetMembershipProvider(SPSite site)
    {
        // get membership provider of whichever zone in the web app is fba enabled 
        SPIisSettings settings = GetFBAIisSettings(site);
        return settings.FormsClaimsAuthenticationProvider.MembershipProvider;
    }
    
    public static SPIisSettings GetFBAIisSettings(SPSite site)
    {
        SPIisSettings settings = null;
    
        // try and get FBA IIS settings from current site zone
        try
        {
            settings = site.WebApplication.IisSettings[site.Zone];
            if (settings.AuthenticationMode == AuthenticationMode.Forms)
                return settings;
        }
        catch 
        { 
            // expecting errors here so do nothing                 
        }
    
        // check each zone type for an FBA enabled IIS site
        foreach (SPUrlZone zone in Enum.GetValues(typeof(SPUrlZone)))
        {
            try
            {
                settings = site.WebApplication.IisSettings[(SPUrlZone)zone];
                if (settings.AuthenticationMode == AuthenticationMode.Forms)
                    return settings;
            }
            catch
            { 
                // expecting errors here so do nothing                 
            }
        }
    
        // return null if FBA not enabled
        return null;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this situation: There are a login page with a login form (form
There are some HTML based games (ie bootleggers.us) that have a simple login form
There is a password policy in place on OpenDS preventing i.e. multiple login failures.
Should I write authentication logic in my forms for handling user login? For example,
I have a login form that contains a username textbox and a password box.
I have this Spring XML: <!-- Configure the authentication --> <security:http auto-config=true use-expressions=true> <security:form-login
During the course of our application login there are several queries ran, all around
I have a .NET 2005 (C#) desktop application, in which there is a login
Is there a way to login my hotmail account and send mails with a
Is there any difference in using login_required decorator in urls.py and in views.py ?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.