Copied to clipboard

Flag this post as spam?

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


  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Mar 30, 2012 @ 12:11
    Lee Kelleher
    0

    [4.7.1.1] Public Access: The username of a Member must be different from an emptry string

    When I protect a content page with Public Access in Umbraco 4.7.1.1, then try to view the page on the front-end, (not as a logged in member), I would expect to be redirect to a login page, instead I get the following error:

    The username of a Member must be different from an emptry string

    Wondering if anyone else is experiencing this?  From investigating the core changesets, the code change was introduced in v4.7.1.1.

    Full stack-trace:

    [ArgumentException: The username of a Member must be different from an emptry string
    Parameter name: loginName]
       umbraco.cms.businesslogic.member.Member.GetMemberFromLoginName(String loginName) +407
       umbraco.providers.members.UmbracoMembershipProvider.GetUser(String username, Boolean userIsOnline) in c:\Program Files (x86)\teamcity\buildAgent\work\b1348deba90dacc5\umbraco\providers\members\MembersMembershipProvider.cs:581
       System.Web.Security.Membership.GetUser(String username, Boolean userIsOnline) +63
       umbraco.requestHandler..ctor(XmlDocument umbracoContent, String url) +4587
       umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs e) +1062
       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.EventHandler.Invoke(Object sender, EventArgs e) +0
       System.Web.UI.Page.OnPreInit(EventArgs e) +9009622
       System.Web.UI.Page.PerformPreInit() +31
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +328

    I've searched around the forum and CodePlex, but nada.

    Cheers, Lee.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Mar 30, 2012 @ 12:24
    Lee Kelleher
    0

    OK, figured it, I'm a dingbat!

    I'd upgraded an Umbraco build from 4.7.0 to 4.7.1.1 and in one of my own business logic projects, I hadn't updated the reference assembly for "umbraco.providers.dll" ... so everytime I recompiled the biz logic, it would overwrite with the newer "umbraco.providers.dll".

    Sorted out my references and all good now!

    You never know, maybe someday this thread might give a pointer for someone! #h5is

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft