0
Answer

Problem with Creating Account Using WindApp. Form

Hello friends, First i'll tell you that i am new in this forum and also in C# programing, Acutely i want to ask about the (Creating Account in Add with my WinApp Form. let me show you my code first. __________________________________________________________________ DirectoryEntry AD = new DirectoryEntry ("WinNT://10.0.0.1 OU=Netzone,DC=netzone,DC=com"); DirectoryEntry NewUser = AD.Children.Add (username,"user"); NewUser.Invoke ("Put",new object[] {"Description", description}); NewUser.CommitChanges(); DirectorySearcher ds =new DirectorySearcher ("server.netzone.com"); SearchResult result = ds.FindOne(); if (result == null) { throw new ArgumentException( "DomainRoot is not a DomainDNS object."); } textBox1.Text = username; textBox2.Text = password; _____________________________________________________________ The problem is that when i run the form to check is it working fine or not..The i go an error (Unknown error (0x80005000). ************** Exception Text ************** System.Runtime.InteropServices.COMException (0x80005000): Unknown error (0x80005000) So please, Tell me how to resolve this problem righnow i am very tired with this..And one thing more i am going to ask about this form after solve this problme i want to access my account with using this form, what is the code about it..! Alot of Big Thanks in Advance..! Your Newly commer.