More in this section
Forums / Security / Membership Problem, RequiresQuestionAndAnswer not implemented

Membership Problem, RequiresQuestionAndAnswer not implemented

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 1 answered
  1. Joseph
    Joseph avatar
    26 posts
    28 Oct 2008
    23 Jul 2009
    Link to this post
    I'm trying to implement the Membership and Role Prover for Sitefinity detailed by Milestre below:

    But I'm having difficulty understanding how to fix the following error:

    The method or operation is not implemented.

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

    Exception Details:System.Exception: The method or operation is notimplemented.

    Source Error:

    Line 219:    public override bool RequiresQuestionAndAnswerLine 220:    {Line 221:        get { throw new Exception("The method or operation is not implemented."); }Line 222:    }Line 223:

    Source File:c:\Inetpub\wwwroot\*\App_Code\CustomMembershipProvider.csLine: 221

    Stack Trace:

    [Exception: The method or operation is not implemented.]   CustomMembershipProvider.get_RequiresQuestionAndAnswer() in c:\Inetpub\wwwroot\*\App_Code\CustomMembershipProvider.cs:221   Telerik.Security.WebControls.ManageUsers.AttemptCreateUser() +188   Telerik.Security.WebControls.ManageUsers.editCnt_Command(Object sender, CommandEventArgs e) +147   Telerik.Cms.Web.UI.GenericContainer`1.OnCommand(Object sender, CommandEventArgs e) +25   Telerik.Cms.Web.UI.GenericContainer`1.OnBubbleEvent(Object source, EventArgs args) +66   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

    Version Information: Microsoft .NET Framework Version:2.0.50727.3082;ASP.NET Version:2.0.50727.3082

    Any thoughts on why that's being triggered and how to resolve it would be most appreciated.

    I haven't worked with the Membership class before and this is proving a wee bit painful.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    24 Jul 2009
    Link to this post
    Hello Joseph,

    In your code you explicitly throw the error in the set accessor "throw new Exception("The method or operation is not implemented.")" The Microsoft implementation does not have set accessor for this property.

    public abstract bool RequiresQuestionAndAnswer { get; } 

    For more information you could take a look at the following links.

    MembershipProvider.RequiresQuestionAndAnswer Property
    Building Custom Providers for ASP.NET 2.0 Membership
    How to: Sample Membership Provider Implementation

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Joseph
    Joseph avatar
    26 posts
    28 Oct 2008
    24 Jul 2009
    Link to this post
    Thanks Ivan, in over my head on this one, got it figured out.
Register for webinar
3 posts, 1 answered