The problem I am facing is extremely bugging!! I am trying to use Form Authentication. My Login form is Login.aspx and the form being authenticated is Report.aspx. I have modified the web.config as follows:
<forms name=".AuthenticationCookie" loginUrl="Login.aspx"
protection="All" timeout="60" path="/">
This section sets the authorization policies of the application. You can allow or deny access
to application resources by user or role. Wildcards: "*" mean everyone, "?" means anonymous
<deny users="*"/> <!-- Deny all users -->
I have written this in the Login.aspx.cs file for Authentication. I am taking the UserName and password from the Login form, validating from a table in an Oracle database. Finally I am doing this ..
I ran the code in debug mode and found this code is reached. My FormsAuthentication code gets executed .. so does my Response.Redirect. However, the redirection doesn't take place. I get back to my login page again. I read in one of the sites that I should remove Anonymous Access from the Security tab under my Project in IIS. Even this doesn't seem to help. Can anyone out there help me please??
I am using Win 2K Server and ASP.NET 1.1 (.NET 2003). Thanks in advance!!