Solved

Active Directory Error

Posted on 2013-06-25
1
295 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

839 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