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

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

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

    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 Guest

  2. Similar Questions and Discussions

    1. "Access Denied" on file I could open yesterday
      Using Contribute 3.11 running Windows 2000 sp4. Monday was able to use Contribute just fine. Tuesday was experiencing "Access Denied" errors when...
    2. "Access is denied" error when running schtasks.exe under ASPNET account in win2k3 server
      Hi all, I am trying to run schtasks.exe from asp.net application wich uses forms authentication under ASPNET account. It gives me "Access is...
    3. IExtractImage, Impersonation, GDI and "access denied" for non-local admins
      Hi, We're using the IExtractImage interface from behind a .NET web service to generate thumbnails for various files in our network (windows...
    4. Equivalent of "friend" or package-level access?
      I have a group of related classes, and I would like them to have certain methods which can only be called by classes within the group. In C++ I...
    5. Error: "Unable to debug on server,Access is denied"
      I installed dotnet and when i try to run a web application i get the error messagebox saying "Unable to debug on server,Access is denied.Would you...
  3. #2

    Default RE: RewritePath throws "Access is Denied" when rewriting to directory level

    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! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    MSFT Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139