Copied to clipboard

Flag this post as spam?

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


  • Timsn 121 posts 231 karma points
    Jul 04, 2009 @ 11:43
    Timsn
    0

    Role based site protection - blank page

    Hi, I want to protect my site with role based protection.

    The web.config settings of the UmbracoMembershipProvider are set to my member type:

    DefaultMemberTypeAlias="WebsiteUser"

    And my login page template looks like this

    [...]
    <asp:LoginView ID="UmbracoLoginView" runat="server">
    <AnonymousTemplate>
    <asp:Login ID="Login1" runat="server"></asp:Login>
    </AnonymousTemplate>
    <LoggedInTemplate>
    <p>Welcome <asp:LoginName ID="LoginName1" runat="server" /></p>
    <p><asp:LoginStatus ID="LoginStatus1" runat="server" /></p>
    </LoggedInTemplate>
    </asp:LoginView>
    [...]

    So when I enable the role based protection for my site and choose the login page in the settings popup window nothing is displayed when I visit the page. No html code is rendered and not even a error message, just a blank page.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 04, 2009 @ 16:17
    Dirk De Grave
    100

    Hi,

    Bit difficult to find out where it went wrong in your case...

    Do you get any trace output when using ?umbdebugshowtrace=true

    Let us know what you find out. 

     

    If still not working or haven't found the cause, I've set up a site which is basically a cws2 addon to show off membership capabilities of umbraco.

    I can give you access if you like to do some some checking on settings and stuff like that. Let me know if that would be beneficial to you.

    Contact me at dirk [at] netaddicts [dot] be

     

    Cheers,

    /Dirk

     

  • Timsn 121 posts 231 karma points
    Jul 04, 2009 @ 16:49
    Timsn
    0

    I didn't knew that there is someting like umbdebugshowtrace ... nice :D

    The trace log says:

    That's strange because the master template of my login page looks like this

    <%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>

    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    <asp:LoginView ID="UmbracoLoginView" runat="server">
    <AnonymousTemplate>
    <asp:Login ID="Login1" runat="server"></asp:Login>
    </AnonymousTemplate>
    <LoggedInTemplate>
    <p>Welcome <asp:LoginName ID="LoginName1" runat="server" /></p>
    <p><asp:LoginStatus ID="LoginStatus1" runat="server" /></p>
    </LoggedInTemplate>
    </asp:LoginView>
    </asp:Content>
    
    
                
  • Timsn 121 posts 231 karma points
    Jul 04, 2009 @ 18:55
    Timsn
    0

    The blank page was caused by a invalid template link. Perhaps due to the migration from my local system to my new hoster.

    Problem solved. Role based protection works perfect now.

Please Sign in or register to post replies

Write your reply to:

Draft