[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Active Directory Error

Posted on 2013-06-25
1
Medium Priority
?
322 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 42

Accepted Solution

by:
Meir Rivkin earned 2000 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

656 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