Francesco

Francesco

  • NA
  • 24
  • 0

Problems with ASP.NET authentication forms

Feb 25 2008 7:36 AM
Hallo,

I uploaded my web site on the server. However after the login I got a 404 error, since it is not able to find a page (I used ASP.NET form authentication, and from the Login.aspx the system should redirect the user to Default.aspx).
In the addess bar, when I got the 404 message there is the following string: "http://[server address]/GenericErrorPage.htm?aspxerrorpath=/Login.aspx".

Could this problem be due to some path problems?
I pasted the
code of the application into a folder on the Server (it is called XHTMLSite and the project in VS 2005 has a different name, but I do not think this is the reason, since internally the path is perfectly the same).

I write here also the web.config:
<system.web>

<compilation debug="true" />

<authentication mode="Forms">
<forms name=".XHTMLSite" loginUrl="Login.aspx" protection="All" timeout="20" path="/" />
</authentication>
<authorization>
<deny users="?" />
</authorization>

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>

<xhtmlConformance mode="Strict"/>
</system.web>

Thank you in advance for every suggestion.