Hi,
I developed an asp.net webform application.
Because I want the access to default.aspx and certain folder is allowed to all user (no need to login), I add
<location path="Default.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
in the Web.Config before the
<system.web>
....
</system.web>
It run as expected in my development computer, but when I published it to the server.
It act not as expected, it always ask the user to login first.
The content of the Default.aspx.cs is something like this:
public partial class Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if ((System.Web.HttpContext.Current.User != null) ...
Go to the complete details ...