Solved

Active Directory Error

Posted on 2013-06-25
1
286 Views
Last Modified: 2014-05-09
Below is an error message while trying to create an account in Active Directory through .Net code.
We are seeing the error very intermittently, only about 5% of the time.
Any ideas?  What to try?



ErrorMessage:
Exception from HRESULT: 0x80005009
________________________________________

InnerException:
System.Runtime.InteropServices.COMException (0x80005009): Exception from HRESULT: 0x80005009
________________________________________

StackTrace:
at System.DirectoryServices.AccountManagement.ADStoreCtx.Insert(Principal p) at System.DirectoryServices.AccountManagement.Principal.Save() at ADMethodsAccountManagement.CreateNewUser(String sOU, String sUserName, String sPassword, String sGivenName, String sSurname, Boolean& sExists) in C:\VSS_CODE\StBarnabas\StBarnabas\App_Code\ADMethodsAccountManagement.cs:line 309 at Login_NewAccount2.RegisterUserInActiveDirectory(String strOU, String strActiveDirectoryGroup, String strFirstName, String strLastName, String strLoginUsrname, String strLoginUsrpwd, String strMail, String strqualcareUserUniqueID, String strqualcareUserDOB, String strqualcareUserHealthplanGroupNum, String strqualcareUserHealthplanSubscriberNumber, String strqualcareUserLegalTermsAcceptedDate, String strqualcareUserLoginSecurityQn, String strqualcareUserLoginSecurityAns) in C:\VSS_CODE\StBarnabas\StBarnabas\Login\NewAccount2.aspx.cs:line 456 at Login_NewAccount2.btnSubmit_Click(Object sender, EventArgs e) in C:\VSS_CODE\StBarnabas\StBarnabas\Login\NewAccount2.aspx.cs:line 213
________________________________________
0
Comment
Question by:srtindall
1 Comment
 
LVL 42

Accepted Solution

by:
sedgwick earned 500 total points
Comment Utility
can u post the code where u create the account?
do u try to create the account under specific OU?
also which .net version you use?
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now