in Search
ATTENTION: I've decided to put the upgrade on hold due to a compatibility issue of our server environment with the latest CS installer package. CS 2008 now requires SQL Server 2005 as the backend DB but our database server currenlty has SQL Server 2000 installed on it. I'll resume the upgrade once I figure out when Telligent is releasing a patch to the schema compatibility issue. For now, we will continue to use the old version of CS while waiting for the said patch. If you have any questions about this process, please don't hesitate to post them on our forums and I'll answer them as soon as I can. Thanks for your patience and support guys! I'll let you know as soon as this is resolved. - Keith Rull
Latest post 06-19-2008 8:58 AM by patrick. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-06-2008 6:40 PM

    • marl
    • Top 10 Contributor
    • Joined on 12-15-2007
    • Long Beach, CA
    • Posts 319
    • Points 3,995

    Admin Login exception?

     What's wrong with this? It is not throwing the message out! (VS2008)

     

    1. protected void Page_Load(object sender, EventArgs e)
    2.     {
    3.         if (!Roles.IsUserInRole("Admin"))
    4.         {
    5.             throw new Exception("You are not authorized to view this page!");
    6.         }
    7.  
    8.     }
    devpinoy sig
    • Post Points: 35
  • 06-09-2008 1:23 PM In reply to

    • keithrull
    • Top 10 Contributor
    • Joined on 08-08-2005
    • San Diego, CA
    • Posts 1,956
    • Points 39,165

    Re: Admin Login exception?

    This works for me. did you setup the ASP.NET Membership APi on your web.config?

    devpinoy sig

    • Post Points: 5
  • 06-19-2008 8:58 AM In reply to

    • patrick
    • Top 50 Contributor
    • Joined on 01-30-2006
    • Posts 27
    • Points 435

    Re: Admin Login exception?

    If you are using ASP.NET Membership API and the <roleManager enabled="true" /> is not in your web.config, this one won't throw the exception.

    • Post Points: 5
Page 1 of 1 (3 items)