Bir Active Directory hesabı oluşturmaya çalışan bu kodu göz önünde bulundurun. Belirli bir veri kümesiyle burada bir istisna oluşturuyor. Şu anda istisnaya neden olan şey net değil. bu istisnayı sebep oluyorActive Directory'de bir kullanıcı oluşturma: Sisteme bağlı bir aygıt çalışmıyor
çalışmıyor Sisteme bağlı bir aygıt ve bunu etrafında nasıl çalışabilirsiniz:
var user = new UserPrincipal(someValidUserContext,
".x-xyz-t-FooFooBarTest", "somePwd", true);
user.UserPrincipalName = "[email protected]";
user.SamAccountName = ".x-xyz-t-FooFooBarTest";
user.DisplayName = "Some String 16 chars long";
user.Name = "Some String 16 chars long";
user.Description = "Foo BarBaz 12 more characters";
user.AccountExpirationDate = someDateInFuture;
user.UserCannotChangePassword = true;
user.Save();
// exception thrown on Save():
// A device attached to the system is not functioning
PrincipalOperationException kullanıcı kodu tarafından işlenmeyen oldu?
En İyi. Mesaj. Hiç. –