location path in Web.config

Discussion in 'ASP .Net' started by Patrick Olurotimi Ige, May 12, 2005.

  1. Using this location path below it relates only to the ADMINSITE
    folder/Directory only.
    Which allows only Admin Groups to the "AdminSite" directory.

    But if i try using ADMIN\AdminSite in the local path below it seems not
    to work

    Where ADMINSITE folder is under ADMIN

    Does <location path="ADMIN\AdminSite"> work?


    <location path="AdminSite">
    <system.web>
    <customErrors mode="Off" />
    <authorization>
    <allow roles="Admin">
    <deny users="*" />
    </authorization>
    </system.web>
    </location>

    *** Sent via Developersdex http://www.developersdex.com ***
     
    Patrick Olurotimi Ige, May 12, 2005
    #1
    1. Advertising

  2. Patrick Olurotimi Ige

    Brock Allen Guest

    Yes it does work, but the path seperator should be a forward slash: "/"

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > Using this location path below it relates only to the ADMINSITE
    > folder/Directory only.
    > Which allows only Admin Groups to the "AdminSite" directory.
    > But if i try using ADMIN\AdminSite in the local path below it seems
    > not to work
    >
    > Where ADMINSITE folder is under ADMIN
    >
    > Does <location path="ADMIN\AdminSite"> work?
    >
    > <location path="AdminSite">
    > <system.web>
    > <customErrors mode="Off" />
    > <authorization>
    > <allow roles="Admin">
    > <deny users="*" />
    > </authorization>
    > </system.web>
    > </location>
    > *** Sent via Developersdex http://www.developersdex.com ***
    >
     
    Brock Allen, May 12, 2005
    #2
    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. KQ
    Replies:
    1
    Views:
    456
  2. Patrick Olurotimi Ige

    Web.Config (location path=)Question

    Patrick Olurotimi Ige, Apr 4, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    52,309
    grchuah
    Nov 5, 2006
  3. CSharpner
    Replies:
    0
    Views:
    1,092
    CSharpner
    Apr 9, 2007
  4. luqman
    Replies:
    2
    Views:
    802
    luqman
    Jul 11, 2007
  5. mpaine
    Replies:
    0
    Views:
    1,193
    mpaine
    Mar 25, 2010
Loading...

Share This Page