ASP.NET Context.User.IsInRole XP Problem

Discussion in 'ASP .Net Security' started by Jim McLeod, Jun 7, 2004.

  1. Jim McLeod

    Jim McLeod Guest

    Hi guys

    I am having a problem with the following line of code on Windows XP Pro. The variable userRole is a string depicting my role on the local machine

    Context.User.IsInRole(userRole

    Basically when the ASP.NET page that is calling this code is refreshed the IsInRole method returns false when it should be returning true. It's not a consistent error, but it shouldn't be failing all the same

    Any ideas

    Jim...
    Jim McLeod, Jun 7, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Saunders

    Re: Question: COntext.User.IsInRole

    John Saunders, Aug 6, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    3,417
    John Saunders
    Aug 6, 2003
  2. Somyos Jinkow

    user.isinrole in user control

    Somyos Jinkow, Jun 1, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,896
    =?Utf-8?B?cmFuZ2FuaA==?=
    Jun 1, 2004
  3. Peter Bons
    Replies:
    1
    Views:
    497
    Patrick.O.Ige
    Mar 31, 2006
  4. Stefan
    Replies:
    12
    Views:
    318
    Stefan
    Jan 10, 2006
  5. Lyndon Hills

    Roles.IsUserInRole != Context.User.IsInRole

    Lyndon Hills, Oct 20, 2006, in forum: ASP .Net Security
    Replies:
    7
    Views:
    974
    Joe Kaplan
    Oct 31, 2006
Loading...

Share This Page