Hello...
I am in the process of writing an application using VB.Net 2003 for my work that will batch process users from a CSV file. The problem that I am having is with this line of code:
The error message that I get is:
What the heck am I doin wrong here?
I am in the process of writing an application using VB.Net 2003 for my work that will batch process users from a CSV file. The problem that I am having is with this line of code:
Code:
Imports ActiveDS
Dim grp As IADsGroup
grp = GetObject("LDAP://CN=Domain Admins,DC=DOMAIN,DC=COM")
grp.Add("LDAP://CN=" & n.FullName & ",OU=Users,OU=Clients,DC=DOMAIN,DC=COM")
The error message that I get is:
System.Exception: Cannot create ActiveX component.
at Microsoft.VisualBasic.Interaction.GetObject(String PathName, String Class)
at WindowsApplication1.Form1.Button1_Click(Object sender, EventArgs e) in C:\SOURCECODE\testapp2\WindowsApplication1\Form1.vb:line 309
What the heck am I doin wrong here?