Error accessing public folder resource via ADO
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Error accessing public folder resource via ADO

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
RayYeung



Joined: 27 Jun 2005
Posts: 3

Posted: Wed Feb 22, 2006 2:35 am    Post subject: Error accessing public folder resource via ADO Reply with quote

I have encountered a problem using ADO to access Exchange2000 public folder. The Exchange environment has only one public folder tree and no replications of the public folder tree among the servers.

Using the following code within the Exchange agent to access public folder resource produces the error:
-2147217895 Object or data matching the name, range, or selection criteria was not found within the scope of this operation.

' strURL is in the format: file://./backofficestorage/<domainname>/public folders/All public folders/target folder/

Private Function ConnectToResource(strURL)
Dim cnn
Dim rec

On Error Resume Next

Set cnn = CreateObject("ADODB.Connection")
Set rec = CreateObject("ADODB.Record")
cnn.Provider = "exoledb.datasource"
cnn.Open strURL
rec.Open strURL, cnn, adModeRead ' <<< error on this line
rec.Close
cnn.Close
On Error Goto 0

Set cnn = Nothing
Set rec = Nothing
End Function

Would anyone give me some ideas as what will be the cause of the problem.

Thanks in advance.

Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
New Topics Powered by phpBB