I am having a problem figuring out if a user is in a role in a VB COM+ application. I have included a reference to "COM+ Services Type Library" (COMSVCS.DLL) and am using the following code:
Function IsAdmin() As Variant
IsAdmin = COMSVCSLib.GetObjectContext.IsCallerInRole("Admins")
The problem is that this function always returns true regardless of whether the caller is in the role or not. Incidentally the GetOriginalCallerName function of the ObjectContext.Security object *is* working.