A
Adam Hafner
I am attempting to use the System.Data.OleDb namespace to
connect to an Active Directory running under Win2000. I
have initialized the OleDbConnection with a connection
string of "Provider=ADSDSOObject;". I have a simple query
string as follows: "SELECT sAMAccountName
FROM 'LDAP://mydomain.com/' WHERE objectClass = 'User'"
I receive an errror when I try to read the
results: "OleDbDataReader result = myCommand.ExecuteReader
(CommandBehavior.CloseConnection);"
The error states: DB_E_ERRORSINCOMMAND(0x80040E14) - An
unhandled exception occurred during the execution of the
current web request.
Any samples or suggestions are greatly appreciated.
Thanks!
connect to an Active Directory running under Win2000. I
have initialized the OleDbConnection with a connection
string of "Provider=ADSDSOObject;". I have a simple query
string as follows: "SELECT sAMAccountName
FROM 'LDAP://mydomain.com/' WHERE objectClass = 'User'"
I receive an errror when I try to read the
results: "OleDbDataReader result = myCommand.ExecuteReader
(CommandBehavior.CloseConnection);"
The error states: DB_E_ERRORSINCOMMAND(0x80040E14) - An
unhandled exception occurred during the execution of the
current web request.
Any samples or suggestions are greatly appreciated.
Thanks!