K
km
I am using ado to connect to active directory in a web application.
I create the command:
objConnection = new adodb.connection
objCommand = New adodb.Command
objConnection.Provider = ADSDOObject
objCommand.Properties("Page Size").Value = 1000
objCommand.Properties("SearchScope").Value = 2
I have one server, one IIS, 2 directories. All permissions are the same
that I can tell on both directories and IIS settings. However, when I run
the above on one of the directories, it run fine, on the other I get this
error:
System.NullReferenceException: Object reference not set to an instance
of an object. at System.Enum.InternalGetValue() at
System.Enum.System.IConvertible.ToBoolean
(IFormatProvider provider)
Why would I get this error on one directory and not the other, exact same
program, same web.config, everything I can think of is exactly the same.
And whatever could be the cause?? Thank you for your help.
I create the command:
objConnection = new adodb.connection
objCommand = New adodb.Command
objConnection.Provider = ADSDOObject
objCommand.Properties("Page Size").Value = 1000
objCommand.Properties("SearchScope").Value = 2
I have one server, one IIS, 2 directories. All permissions are the same
that I can tell on both directories and IIS settings. However, when I run
the above on one of the directories, it run fine, on the other I get this
error:
System.NullReferenceException: Object reference not set to an instance
of an object. at System.Enum.InternalGetValue() at
System.Enum.System.IConvertible.ToBoolean
(IFormatProvider provider)
Why would I get this error on one directory and not the other, exact same
program, same web.config, everything I can think of is exactly the same.
And whatever could be the cause?? Thank you for your help.