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

S

SJ

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
 
M

MSFT

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.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top