Access data in Microsoft Exchange

Hello all,

I'm new at programming application that should access the Microsoft Exchange
database and therefore I need some help.

For my customer application I have to access data that is stored in Microsoft Exchange. i do it like that:

With con
                .Provider = "exoledb.datasource"

            End With

and i get this error:

System.Runtime.InteropServices.COMException: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
   at ADODB.ConnectionClass.Open(String ConnectionString, String UserID, String Password, Int32 Options)
   at Service.BorrarDirectorio(String Dominio, String Usuario, String user, String password) in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\Web_Services\App_Code\Service.vb:line 90
   at Service.BorraDirectorio(String Dominio, String Usuario) in C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\WebSites\Web_Services\App_Code\Service.vb:line 55

do you know how can i do the authentication for access data in Microsoft Exchange???????
Who is Participating?
jhanceConnect With a Mentor Commented:
First, there are two really excellent books on the subject of programming Exchange.  I recommend each of them highly:

1) Programming Microsoft Outlook and Microsoft Exchange 2003 by Thomas Rizzo

2) Programming Collaborative Web Applications with Microsoft Exchange 2000 Server by Mindy Martin

No Exchange programmer should be without at least one of these.

Normally when you access an Exchange Server you do so from a domain member machine and your current credentials are used to authenticate you against the Exchange server.  So you should leave the user and password parameters in the Open method blank:

marianatagliaferroAuthor Commented:
thank you..... it worked perfect....
In that case you should click the ACCEPT button on my comment.  It's not a good idea to leave questions open as the site moderators will slap you for it.
As I said, you'll get slapped for leaving this open....
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.