[Mono-list] Problem with FormsAuthentication
Carl Olsen
carl at carl-olsen.com
Sun Jul 10 18:28:10 EDT 2005
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: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Jesse Pasichnyk
Sent: Sunday, July 10, 2005 4:24 PM
To: mono-list at lists.ximian.com
Subject: [Mono-list] Problem with FormsAuthentication
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%2fdef
ault.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%2fDef
ault.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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://galactus.ximian.com/pipermail/mono-list/attachments/20050710/36fb99ac/attachment.html
More information about the Mono-list
mailing list