Microsoft
Software
Hardware
Network
Question : User.isInRole always return false
Hi, I have the following problem...
I have Asp.net Mvc2 App (C#) on a IIS6 server (win2003). Anonymous
access is not allowed, only using windows authentication (intranet app),
my code :
System.Security.Principal.
IPrincipal
User;
User = System.Web.HttpContext.Cur
rent.User;
if (User.IsInRole("AMU\\Denta
lReg")) // always return false
and i'm sure the logged user is amember from this security group
When I change group to "domain admins" -> it runs fine
Does anyone know more about this issue?
Answer : User.isInRole always return false
By the way that is 32,767.
Random Solutions
How do I place a control to return in the subject of an email
Need to send mail through an authenticated smarthost in Exchange 2007/2003
What's the fastest way to do a wherein query in linq2sql
Change additional 32-bit printer drivers - SBS 2008
Changing Background colors for a column based on contents of cell
MySQL Query Help
Looking for bicycle cadence indicator using colored LEDs to show speed
How do I create a looping to add values in columns?
Monitor programs
Nhibernate cache problem while using MS-SQL triggers