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:
/ /web.config /login.aspx /Global.aspx /Global.aspx.cs /bin/ /admin/ /admin/web.config /admin/default.aspx /admin/default.aspx.cs /student/ /student/web.config /student/default.aspx /student/default.aspx.cs 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 marek
signature.asc
Description: Digital signature
_______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list