protected void Application_AuthenticateRequest(Object sender, EventArgs e) { if (Request.IsAuthenticated) { string[] roles = null; MainSecurity objscu = new MainSecurity(); roles = objscu.GetRoleSymbol(HttpContext.Current.User.Identity.Name, DFISYS.API.Config.CurrentChannel); //ChannelUsers objUser = new ChannelUsers(); //string[] roles = objUser.getRoles(HttpContext.Current.User.Identity.Name);//UserManagement.GetRoles(HttpContext.Current.User.Identity.Name); HttpContext.Current.User = new GenericPrincipal(HttpContext.Current.User.Identity, roles); } }