Monday, December 15, 2008

CDO1.2.1 throwing COMException on Outlook 2007

I was working on a Outlook Add-In to save email from Outlook 2003 and 2007 using Outlook Object Modle, which seems to work fine. Then we got a requirement to support the Exchange format mail to, in which we got stucked, while reteriving the email id of the recipients and sender it gives in exchange format, which we doesn't want. To overcome this issue we have used CDO 1.21 to get the SMTP address. This works fine in Outlook 2003, When we are testing it in Outlook 2007, we got an exception, message saying

"Retrieving the COM class factory for component with CLSID {3FA7DEB3-6438-101B-ACC1-00AA00423326} failed due to the following error: ". When i browsed through the net, i came to know that, Beginning in Exchange 2007 Beta 2 and Outlook 2007 Beta 2, CDO 1.2.1 will no longer be provided as a part of the install of the product. As a result, there is functionality missing that many applications depend upon. CDO 1.2.1 is a package providing access to Outlook-compatible objects through a COM-based API.

So if you are using CDO library to access Outlook objects and have plans to move your application to Office 2007. You need to install the CDO 1.2.1 separately. You can dowload the CDO 1.2.1 from here

Happy programming

No comments:

Post a Comment