RE: Page.User.IsInRole True for AD group in VS.NET not true on samemachine once published

Discussion in 'ASP .Net' started by wildman@noclient.net, Mar 10, 2008.

  1. Guest

    RE: Page.User.IsInRole True for AD group in VS.NET not true on same
    machine once published

    This is Odd. I have an an AD group on my domain. I am able to restrict
    diretory access via the web config allow roles pointing to it.

    And my master page codebehind, I can test isinrole while in VS and
    works great. This statement being false.

    If Not (Page.User.IsInRole("mydomain\myADgroup")) Then

    However if I publish the site to my local machine and run it from
    there the above statement is true. I checked IIS and it's configure
    with annoymous and Integrated security as expected.

    Thanks for any help or information.
     
    , Mar 10, 2008
    #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. Peter Bons
    Replies:
    1
    Views:
    516
    Patrick.O.Ige
    Mar 31, 2006
  2. Reckoner
    Replies:
    2
    Views:
    378
    Reckoner
    Jun 10, 2008
  3. bdb112
    Replies:
    45
    Views:
    1,423
    jazbees
    Apr 29, 2009
  4. Somyos

    Not use User.IsInRole in user control

    Somyos, Jun 1, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    121
    Somyos
    Jun 1, 2004
  5. Morris Neuman
    Replies:
    10
    Views:
    1,078
    Steven Cheng[MSFT]
    Jan 10, 2007
Loading...

Share This Page