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
Replacing broken images (javascript on error in php)
get selected (not all) checkboxes in jQuery
Contravariance in Predicate delegates in C#
Office 2010 - changing printer properties seem to be ignored
add to img tag
C# & XSLT: How to output empty tags
How do I uninstall Symantec Backup Exec 11d in Windows Server 2003??
Oracle Apex 4.0: How to handle item values in a region title
Sending multi lines email by Linux sendemail script
Centering text in header of collapsible panel