hey all could you please help me fix this problem? i spent hours looking for the solution, but haven't solved the problem.
[U]web.config file[/U]
[B]authorization[/B]
[code=xml]<authorization>
<allow roles="Admin"/>
<allow roles="Employee"/>
<allow roles="Manager"/>
<deny users="?"/>
</authorization>
<roleManager enabled="true"/>
<compilation debug="true">
authentication
<authentication mode="Forms">
<forms loginUrl="Login.aspx"
protection="All" timeout="30"
name=".login" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="uploadreport.aspx" cookieless="UseDeviceProfile" enableCrossAppRedirects="false"/>
</authentication>
and the code for the login file
protected void Page_Load(object sender, EventArgs e)
{
if (User.Identity.IsAuthenticated)
{
Response.Redirect("uploadreport.aspx");
}
else
{
Response.Write("Login is not successful. Please try again");
}
}
did i do something wrong? thanks for your help, really appreciate it :) :) :)