Solved

Active Directory Error

Posted on 2013-06-25
1
289 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
ID: 39281322
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

914 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

18 Experts available now in Live!

Get 1:1 Help Now