RewritePath throws "Access is Denied" when rewriting to directory level

Discussion in 'ASP .Net Security' started by SJ, Nov 16, 2003.

  1. SJ

    SJ Guest

    Hello,

    I have a problem trying to rewrite a path in ASP.NET 1.1 - each rewrite
    throws an Access is Denied error, even though anonymous access is allowed
    for the directories in question, and they are sub-directories of the ASP.NET
    web application. This only occurs if the path is rewritten at the directory
    level; if a specific page is included, then the rewrite works. For example:
    * app.Context.RewritePath( "apps") fails; but
    * app.Context.RewritePath( "apps/default.aspx") works.

    Is this a bug or by design?

    Thanks

    Simon
     
    SJ, Nov 16, 2003
    #1
    1. Advertising

  2. SJ

    MSFT Guest

    Hi Simon,

    This is by design. In your situation, "apps" is just a sub folder of your
    web application. It is not a virtual folder or web application. You can't
    access it with "apps".

    Luke
    Microsoft Online Support

    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)
     
    MSFT, Nov 17, 2003
    #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. GM
    Replies:
    2
    Views:
    2,279
  2. pabbu
    Replies:
    8
    Views:
    768
    Marc Boyer
    Nov 7, 2005
  3. Seth Williams

    URL Rewriting at Domain level

    Seth Williams, Sep 27, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    426
    Marko
    Sep 29, 2008
  4. codeboy
    Replies:
    1
    Views:
    1,593
    Juan T. Llibre
    Jun 8, 2009
  5. Anthony
    Replies:
    0
    Views:
    156
    Anthony
    Aug 6, 2004
Loading...

Share This Page