Re: ado & Active directory

Tech-Archive recommends: Speed Up your PC by fixing your registry



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

"km" <SSKM@xxxxxxxxx> schreef in bericht
news:OA38jRx4GHA.3840@xxxxxxxxxxxxxxxxxxxxxxx
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.


"Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx> wrote in message
news:egCjR1q4GHA.2264@xxxxxxxxxxxxxxxxxxxxxxx
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

"km" <SSKM@xxxxxxxxx> schreef in bericht
news:eLDueAo4GHA.4832@xxxxxxxxxxxxxxxxxxxxxxx
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.








.



Relevant Pages

  • Re: ADODB and .Net
    ... Therefore the first question, why ADODB? ... did you know that there is a newsgroup about Ado for dotnet? ... I have an include ADODB at the top of the file as a namespace. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: connection.OpenSchema
    ... > Have a look at the language independent ADO.Net group: ... I have the idea that it is not ADONET however ADO ... (Most questions are answered in that newsgroup, this message is of course as ...
    (microsoft.public.dotnet.languages.vb)
  • Re: adding columns on the fly to existing mdb
    ... > In ADONET I am sure there is not. ... From Ado what is preferable than I don't ... > newsgroup also, would I ask this in your case in this newsgroup. ... Thanks Cor. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: main objects of ADO
    ... Are you talking about ADO or ADONET. ... newsgroup. ... All classes from ADONET are in the system.data namespace they implements ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: ADO time limit bug: DB connecting to itself
    ... As you wrote are you using Ado, what is not AdoNet however sometimes as well ... called AdoDb. ... For that is another newsgroup probably a better place. ...
    (microsoft.public.dotnet.framework.adonet)