Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
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.

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us