Web.Config and the location tag not working

Last post 08-07-2003 11:58 AM by Feline. 6 replies.

Sort Posts:

  • Web.Config and the location tag not working

    08-04-2003, 5:06 PM
    • Member
      70 point Member
    • Feline
    • Member since 07-09-2002, 8:40 AM
    • Posts 14
    I think this is a simple error I just can't see the wood for the trees could some one help me please.

    There is an error in the config and I just can see it file looks like this

    <configuration>
    <system.web>
    ...
    <authentication mode="Forms">
    <forms name="ASPXCOOKIEMEDUSA" loginUrl="Pages/login.aspx" protection="All" timeout="30" path="/">
    </forms>
    </authentication>
    <authorization>
    <deny users="?" />
    </authorization>
    ....
    </system.web>
    <Location path="Pages/GetJobList.aspx" >
    <system.web>
    <authorization>
    <alow users="?" />
    </authorization>
    </system.web>
    </Location>
    </configuration>

    There is an error in there some where in the location tag as if i take it out it works fine my intention is to have one page in the app that dose not require autentication to access it.

    thanks in advance
  • Re: Web.Config and the location tag not working

    08-04-2003, 9:06 PM
    • Contributor
      6,996 point Contributor
    • russnem
    • Member since 10-03-2002, 11:26 PM
    • Los Angeles, CA
    • Posts 1,389
    • ASPInsiders
      TrustedFriends-MVPs
    Could you paste the whole thing in here (inside
     and 
    tags)?
  • Re: Web.Config and the location tag not working

    08-06-2003, 3:32 PM
    • Member
      5 point Member
    • Maria.J
    • Member since 08-06-2003, 3:29 PM
    • Posts 1
    Could it be the line:

    <alow users="?" />

    Change to:

    <allow users="?" />


  • Re: Web.Config and the location tag not working

    08-06-2003, 3:51 PM
    • Star
      9,098 point Star
    • dunnry
    • Member since 06-24-2002, 4:17 PM
    • http://directoryprogramming.net
    • Posts 1,806
    Also, check case-sensitivity of the 'location' tag. I believe it is case-sensitive.
  • Re: Web.Config and the location tag not working

    08-07-2003, 4:48 AM
    • Member
      70 point Member
    • Feline
    • Member since 07-09-2002, 8:40 AM
    • Posts 14
    thanks for the help people I've just try both of your surgestions and nither of them have worked I still get the error when trying to run the applications.

    But thanks for trying code now is


    <configuration>
    <system.web>
    ....
    <authentication mode="Forms">
    <forms name="ASPXCOOKIEMEDUSA" loginUrl="Pages/login.aspx" protection="All" timeout="30" path="/">
    </forms>
    </authentication>
    <authorization>
    <deny users="?" />
    </authorization>
    .....
    </system.web>
    <location path="Pages/GetJobList.aspx" >
    <system.web>
    <authorization>
    <allow users="?" />
    </authorization>
    </system.web>
    </Location>
  • Re: Web.Config and the location tag not working

    08-07-2003, 11:42 AM
    • Star
      9,098 point Star
    • dunnry
    • Member since 06-24-2002, 4:17 PM
    • http://directoryprogramming.net
    • Posts 1,806
    Check your case-sensitivity again. The ending 'location' tag needs to match the beginning.
  • Re: Web.Config and the location tag not working

    08-07-2003, 11:58 AM
    • Member
      70 point Member
    • Feline
    • Member since 07-09-2002, 8:40 AM
    • Posts 14
    I is binld chimp

    Thanks you for your help and patience
Page 1 of 1 (7 items)