[Mono-aspnet-list] XSP2 ignores page access rights given in Web.config <location>

Alexander M. Batishchev abatishchev at gmail.com
Sun Jan 3 17:07:15 EST 2010


Hello!

I'm porting my ASP.NET application (2.0 controls and 3.5 syntax) onto Mono
and testing it using XSP2.

Mono from trunk, gmcs ver. 2.7.0.0
XSP2 from trunk, ver. 2.5.0.0, runtime ver. 2.4.3; ASP.NET ver.
2.0.50727.1433

As it's said on http://msdn.microsoft.com/en-us/library/b6x6shw7.aspx and
http://www.mono-project.com/Config_system.web I allowed anonymous access to
Logout.aspx and styles.css (for design of Login and Logout pages) in
Web.config the following way:

<configuration>
   <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>
</configuration>

This works fine in Visual Studio ASP.NET Development Server, IIS6 and IIS7
but in XSP - not! XSP ignores it: shows Login page without design until user
has successfully logged in and requires user to be logged in to access
Logout page.

I tried to use application relative path like "~/Login.aspx" but it didn't
helped.

Why? How can I fix that?
Thanks in advance!
-- 
View this message in context: http://old.nabble.com/XSP2-ignores-page-access-rights-given-in-Web.config-%3Clocation%3E-tp26992738p26992738.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.



More information about the Mono-aspnet-list mailing list