TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Syed Yasir Raza Zaidi
NA
1
0
Problem with Creating Account Using WindApp. Form
Jul 28 2007 10:08 PM
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.
Reply
Answers (
0
)
How do I Bind a DatagridView to the properties of the base object?
From database to a datagrid