|
|
|
date: Wed, 05 Mar 2008 12:17:48 +0100,
group: microsoft.public.exchange.development
back
Error "0x80040E19" when connecting to exchange using ADO
Hello NG,
i'm getting error "0x80040E19" ("Object or data matching the name,
range, or selection criteria was not found within the scope of this
operation.") when i try to connect to an exchange server using ADO.
Here is the (VB6-)code:
Private Sub Command1_Click()
Dim adRecord As ADODB.Record
Set adRecord = New ADODB.Record
Call adRecord.Open("http://testserver/public/testfolder", ,
ConnectModeEnum.adModeReadWrite, , , "username", "password")
MsgBox CStr(adRecord.Fields("DAV:href").Value)
adRecord.Close
End Sub
This error only occures on the server machine itself, when i remotely
connect to the exchange server from another computer, it works without
errors.
I'me getting this behaviour on an exchange server 2003 and 2007.
What am i doing wrong?
Thanks in advance,
Daniel L.
date: Wed, 05 Mar 2008 12:17:48 +0100
author: Daniel L.
Re: Error "0x80040E19" when connecting to exchange using ADO
Problem solved, seems to have something to do with the ADO-provider.
I've set the provider to "ExOLEDB.DataSource" and now it works.
Daniel L. schrieb:
> Hello NG,
>
> i'm getting error "0x80040E19" ("Object or data matching the name,
> range, or selection criteria was not found within the scope of this
> operation.") when i try to connect to an exchange server using ADO.
> Here is the (VB6-)code:
>
> Private Sub Command1_Click()
> Dim adRecord As ADODB.Record
>
> Set adRecord = New ADODB.Record
>
> Call adRecord.Open("http://testserver/public/testfolder", ,
> ConnectModeEnum.adModeReadWrite, , , "username", "password")
>
>
> MsgBox CStr(adRecord.Fields("DAV:href").Value)
>
> adRecord.Close
>
> End Sub
>
> This error only occures on the server machine itself, when i remotely
> connect to the exchange server from another computer, it works without
> errors.
>
> I'me getting this behaviour on an exchange server 2003 and 2007.
>
> What am i doing wrong?
>
> Thanks in advance,
> Daniel L.
date: Wed, 05 Mar 2008 15:39:13 +0100
author: Daniel L.
|
|