G
Guest
I'm new to .Net and would like to start using .aspx pages to work w/ Active
Directory instead of classic asp. I get this error when trying to run my
page:
Type 'DirectoryEnty' is not defined.
Can anyone tell me what is wrong? My code below:
<%@Page Explicit="True" Language="VB" Debug="True" %>
<%@ Import Namespace="System.DirectoryServices" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>ASP.NET Temp User</title>
</head>
<script runat="server">
Sub add_user(sender As Object, e As EventArgs)
Dim strPath As String = "LDAP://OU=Belgium,DC=qmc,DC=com"
Dim myDE As New DirectoryEntry(strPath)
Dim myEntries As DirectoryEnty = myDE.Children.Add("CN=Test User", "user")
myEntries.CommitChanges()
End Sub
</script>
Many Thanks!!
Directory instead of classic asp. I get this error when trying to run my
page:
Type 'DirectoryEnty' is not defined.
Can anyone tell me what is wrong? My code below:
<%@Page Explicit="True" Language="VB" Debug="True" %>
<%@ Import Namespace="System.DirectoryServices" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>ASP.NET Temp User</title>
</head>
<script runat="server">
Sub add_user(sender As Object, e As EventArgs)
Dim strPath As String = "LDAP://OU=Belgium,DC=qmc,DC=com"
Dim myDE As New DirectoryEntry(strPath)
Dim myEntries As DirectoryEnty = myDE.Children.Add("CN=Test User", "user")
myEntries.CommitChanges()
End Sub
</script>
Many Thanks!!