Roles.AddUserToRole Cannot add a windows user

May 5, 2009 at 3:28 AM
I am using
Roles.AddUserToRole throws a NullReferenceExecption when I try to add a windows user to an existing role.

string roleName = "TestRole";
string user = string.Format(@"{0}\{1}",Environment.UserDomainName, Environment.UserName);

Adding a existing database user to a role does work.

May 5, 2009 at 8:37 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.