I'm using windows authentication for my web app. It works fine on my local development machine but when I access my pages on the web server it doesn't appear to be working. The web server is on the domain running IIS 6.xxx, the same as my development machine. The web.config file is as follows:
</membership>
<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"/>
the code on the page load event is:
if (!Roles.IsUserInRole(User.Identity.Name, @"InfiMed\IS"))
{
this.cmdAddNew.Visible = false;
this.gvEmployees.Columns[9].Visible = false;
}
The setting for the IIS appear to be the same, is there something in the security policies that I'm missing?
</membership>
<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"/>
the code on the page load event is:
if (!Roles.IsUserInRole(User.Identity.Name, @"InfiMed\IS"))
{
this.cmdAddNew.Visible = false;
this.gvEmployees.Columns[9].Visible = false;
}
The setting for the IIS appear to be the same, is there something in the security policies that I'm missing?