Try this, <system.web>
<authentication mode="Forms">
<forms name="MONOAUTH" loginUrl="/Administration/Login.aspx" protection="All" timeout="60" path”/” />
</authentication>
<authorization>
<allow users="*" />
</authorization> </system.web> From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jesse Pasichnyk Hi, I just upgraded to the stable version of mono on my RHEL4
box. I have an ASP.NET (v1.1) application that I’m working
on that has a login section for administration. This works fine on IIS/MS
Framework. However when I run it on the linux box under mono it has
unexpected behavior. The Web.config section to setup the
forms based authentication is as follows: <system.web>
<authentication mode="Forms">
<forms name=".MONOAUTH" loginUrl="Administration/Login.aspx" protection="All" timeout="60" path="/Administration/"/>
</authentication>
<authorization>
<deny users="?" />
</authorization> </system.web> On my MS box I when I try to go to
localhost/Administration it forwards me to: http://localhost/Administration/Login.aspx?ReturnUrl=%2fAdministration%2fdefault.aspx however on my MONO/linux box when I
go to the same url I get forwarded to the same url: http://localhost/Administration/Login.aspx?ReturnUrl=%2fAdministration%2fDefault.aspx The problem starts here. When
it forwards me to this login page, now I don’t see the forms login like I
do under MS .NET; I instead get a server error as follows: Server error in '/' application
Unauthorized
Description: Error
processing request. Error Message: HTTP 401. Unauthorized If
anyone has any insight as to why this is happening and how I can fix it, please
let me know. I need to get this site to production ASAP. Thanks, Jesse |
_______________________________________________ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list