Access data in Microsoft Exchange

Posted on 2006-05-22
Last Modified: 2010-04-17
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???????
Question by:marianatagliaferro
    LVL 32

    Accepted Solution

    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:


    Author Comment

    thank you..... it worked perfect....
    LVL 32

    Expert Comment

    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.
    LVL 32

    Expert Comment

    As I said, you'll get slapped for leaving this open....

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    This article will show, step by step, how to integrate R code into a R Sweave document
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now