[Mono-dev] [ASP.NET] HttpRequest question

Marek Habersack grendel at caudium.net
Sun May 7 19:25:38 EDT 2006

Hello everybody,

  There's some code in HttpRequest's MapPath (starting at
HttpRequest.cs:1170) that I can't dig the logic of. Given a site with the
following sample structure:


where the toplevel web.config contains authentication configuration and the
web.configs in subdirs contain authorization setup for the dirs. 

When the app is started and the user navigates to yourhost.com/admin/ or
yourhost.com/student/, the first exception in the above code block is
thrown. Here's what MapPath sees just before throwing the exception:

virtualPath == /Global.asax.cs; RootVirtualDir == /admin

So, I don't understand why RootVirtualDir is set to /admin instead of /,
which is the actual application root. The request is definitely not crossing
app boundaries, so either the code block is wrong, or RootVirtualDir has an
incorrect value. Could somebody, please, shed some light on it?

tia, best regards

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060508/4cc11a92/attachment.bin 

More information about the Mono-devel-list mailing list