3
我有一個域中的帳戶。C#PrincipalServerdownException即使我是真實用戶
當我嘗試用下面的代碼連接到它,我得到一個異常 PrincipalServerdownException
這裏是有問題的代碼
Console.WriteLine("User Name: " + userName + " Password: " + tb.Text.ToString().Trim());
System.DirectoryServices.AccountManagement.PrincipalContext pc = new System.DirectoryServices.AccountManagement.PrincipalContext(ContextType.Domain, "COURTS.JUDICIARY.STATE.NJ.US");