The Web application developed by ASP.net 1.1 is released through IIS7 after upgrading to 2.0 or 3.5.
The authentication method in the procedure adopts form attestation, the code of Web.config file is as follows:
<authentication mode= "Forms" >
<forms loginurl= "pages\systempage\login\logon.aspx"
. Aduauth "protection=" All ">
</forms>
</authentication>
"Problem-encountered phenomenon"
After authentication login, the program always displays the login page logon.aspx
Through the program tracking, found in the Logon.aspx.cs
SetAuthCookie () and RedirectFromLoginPage ()
Invalid after execution, cannot change request.isauthenticated value, always false;
"Solution"
Run IIS7-> the Web program-> authentication-> form Authentication-> Edit-> cookie Settings-> Use cookies-> applications.
After making such modifications, the Web.config file is automatically modified to:
<authentication mode= "Forms" >
<forms cookieless= "usecookies" loginurl= "pages\systempage\login\"
Logon.aspx "Name=". Aduauth "
protection=" All ">
</forms>
</authentication>
Run the program again, the problem is resolved, the program can log on normally.