Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon Dingley 1474 posts 3431 karma points c-trib
    Feb 11, 2010 @ 13:56
    Simon Dingley
    0

    UmbracoMembershipProvider affects User Login

    I have a site using a custom UmbracoMembershipProvider which works fine however when I now add a new Umbraco User (not member) I get the infamous 'Object reference not set to an instance of an object' exception thrown by the custom UmbracoMembershipProvider. The UsersMembershipProvider remains untouched as follows:

    <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false" requiresQuestionAndAnswer="false" />

    Any ideas? 

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Feb 11, 2010 @ 22:58
    Aaron Powell
    0

    Want to include the full stack trace please?

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Feb 12, 2010 @ 11:53
    Simon Dingley
    0

    Hmm, won't post for some reason if I copy and paste so here is a plain version:

     

    Stack Trace: 
    
    
    [NullReferenceException: Object reference not set to an instance of an object.]
       MyClient.Providers.SQLMembershipProvider.GetUser(String username, Boolean userIsOnline) in D:\MyClient\MyClient.Providers\SQLMembershipProvider.cs:482
       System.Web.Security.Membership.GetUser(String username, Boolean userIsOnline) +82
       umbraco.cms.presentation.user.EditUser.setupForm() +76
       umbraco.cms.presentation.user.EditUser.Page_Load(Object sender, EventArgs e) +2887
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +99
       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +15
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    
    
    
  • Simon Dingley 1474 posts 3431 karma points c-trib
    Feb 12, 2010 @ 11:57
    Simon Dingley
    0

    For users it should not be calling the members provider GetUser method should tit?

  • Ken Mark 82 posts 94 karma points
    Jul 09, 2010 @ 10:52
    Ken Mark
    0

    I have the same problem. I get:

    Specified method is not supported.

    [NotSupportedException: Specified method is not supported.]
    <?????>.utilities.CustomMembershipProvider.GetUser(String username, Boolean userIsOnline) in <?????>\utilities\CustomMembershipProvider.cs:156
    System.Web.Security.Membership.GetUser(String username, Boolean userIsOnline) +63
    umbraco.cms.presentation.user.EditUser.setupForm() +190
    umbraco.cms.presentation.user.EditUser.Page_Load(Object sender, EventArgs e) +4949
    System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
    System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
    System.Web.UI.Control.OnLoad(EventArgs e) +91
    umbraco.BasePages.BasePage.OnLoad(EventArgs e) +49
    System.Web.UI.Control.LoadRecursive() +74
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

     

    Shoudn't it be using the UsersMembershipProvider?

     

Please Sign in or register to post replies

Write your reply to:

Draft