PDA

View Full Version : [CLOSED] Security with membership not working Ext.Net



osef
Aug 13, 2013, 10:28 PM
Hi Team Ext.Net, I have a problem when I put security in my app with authentication mode="Forms", but I see that I put a control of Ext.Net I don't see the controls I have a white page, What Can I do?

Thank you

Vladimir
Aug 13, 2013, 10:44 PM
Try to use the following code in Global.asax


protected void Application_AuthenticateRequest(object sender, System.EventArgs e)
{
string url = HttpContext.Current.Request.FilePath;


if (url.EndsWith("ext.axd"))
{
HttpContext.Current.SkipAuthorization = true;
}
}

osef
Aug 13, 2013, 11:02 PM
Try to use the following code in Global.asax


protected void Application_AuthenticateRequest(object sender, System.EventArgs e)
{
string url = HttpContext.Current.Request.FilePath;


if (url.EndsWith("ext.axd"))
{
HttpContext.Current.SkipAuthorization = true;
}
}


Thank you Vladimir this is working, but, Why Have I to do this?

Vladimir
Aug 13, 2013, 11:21 PM
Because you set Forms all authorization for all location (all requests)
Therefore anonymous requests from login page cannot access to ext.axd (Ext.Net resource handler)

osef
Aug 13, 2013, 11:57 PM
Because you set Forms all authorization for all location (all requests)
Therefore anonymous requests from login page cannot access to ext.axd (Ext.Net resource handler)

You can to close this thread.

Thank you