Whenever I am trying to save a UserPrincipal
to Active Directory and the UserPrincipalName
or EmailAddress
length is longer than 20 characters the UserPrincipal.Save
method will throw the following error:
'System.DirectoryServices.AccountManagement.PrincipalOperationException' A device attached to the system is not functioning active
How to save an emailaddress with a length longer than 20 characters?