[Mono-list] Problem with FormsAuthentication

Jesse Pasichnyk jesse at pasichnyk.net
Sun Jul 10 17:23:53 EDT 2005


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/ab5a2d40/attachment.html


More information about the Mono-list mailing list