ado & Active directory

  • Thread starter Thread starter km
  • Start date Start date
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.
 
km,

This is not a Ado newsgroup but an ADONET newsgroup.

For visual basic there is by instance the newsgroup

microsoft.public.dotnet.languages.vb.data

I hope this helps,

Cor
 
Well, no, that doesn't help, I am using ado.net... It's not a vb problem,
it's an ado problem, or maybe an active directory problem, I figured any ado
group -- dot net or not -- may have encountered something like this and
help. Thanks for your input though.
 
¤ 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.
¤

On which line of code is the exception generated?


Paul
~~~~
Microsoft MVP (Visual Basic)
 
KM,
Well, no, that doesn't help, I am using ado.net...

Adodb is not AdoNet

it is Ado, you are probably using .Net, but with that is AdoDb not a .Net
part, you can use everything in .Net.

Cor
 
Back
Top