Copied to clipboard

Flag this post as spam?

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


  • Tom C 87 posts 222 karma points
    Dec 04, 2014 @ 19:33
    Tom C
    0

    umbraco 7.2 problem with GetCurrentMember

    Just upgraded from 7.1.8 to 7.2.0 release

    Have a bit of code in the OnLoad method of a User Control

    if (HttpContext.Current.User.Identity.IsAuthenticated) { 

        var currentMember =umbraco.cms.businesslogic.member.Member.GetCurrentMember();

     

    This worked fine before but after upgrade the GetCurrentMember returns null ...

     

     


     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Dec 04, 2014 @ 19:41
    Jan Skovgaard
    0

    Hi Tom

    When you did the upgrade did you then read and follow the instructions from http://our.umbraco.org/contribute/releases/720?

    It says that

    "Note that the only significant config file change is that the UmbracoMembershipProvider, UsersMembershipProvider and UmbracoRoleProvider have been updated in the web.config."

    Could that be the issue?

    /Jan

  • Tom C 87 posts 222 karma points
    Dec 04, 2014 @ 20:05
    Tom C
    0

    Hi Jan 

    thanks for your reply, but that info is between versions 7.0.x and 7.2.0 not 7.1.x and 7.2.0.

    I did merge my web.configs but there is very little difference between 7.1.8 and 7.2.0.

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Dec 04, 2014 @ 21:05
    Jan Skovgaard
    0

    Hi Tom

    Ah yes, you're right - I misread that totally.

    Might be a good idea to report this on this issue tracker then.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft