在Application页面代码中添加如下代码:
public partial class Detail : UnsecuredLayoutsPageBase
{
protected override bool AllowAnonymousAccess
{
get
{
return true;
}
}
protected void Page_Load(object sender, EventArgs e)
{
}
}