Mono XSP ignores <location> directive in Web.Config
I'm porting my ASP.NET
application to Mono
. I built it from SVN trunk
under Debia开发者_开发百科n
5.0.
I allow anonymous access to Logout.aspx
and styles.css
using Web.config
directives:
<location path="Logout.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
<location path="styles.css">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
It works fine under Visual Studio Web Server
, IIS6
and IIS7
but doesn't under XSP2
2.5.0.0. Are there any workarounds or ways to do the same task but differently?
I mean doesn't work - requesting redirects to Login.aspx
The bug seems to have been fixed on the 9th of jan. See the details in mono's bugzilla
Unfortunately it does not seem to work on (sub)directories, so css and js directories are still not accessible after logging in.
精彩评论