Updating cdo dll
Above we explained all the processes you can do to fix the dll error you are receiving.
If the error is continuing after you have completed all these methods, please use the comment form at the bottom of the page to contact us.
Otherwise, the following exception or something similar will be thrown every time the code tries to initialize the MAPI Session.
"Retrieving the COM class factory for component with CLSID failed due to the following error: 80040154." Additionally, [STAThread] attribute directive MUST be declared above the Main() method of your console application.
that most people do not know where to get this library DLL file for CDO programming. after reading alot of posts on the WWW,i noticed that in the implementation of CDO dll there's something in the constructor of most of the classes which cause this error to be raised. For more information, please look up CDO (or) Collaboration Data Objects on MSDN website. Can any one find out a fix for this with out adding more trials to stucked developers [: D] Microsoft CDO 1.21 Library C:\Program Files\Common Files\System\MSMAPI33\If it is not installed, download the Collaboration Data Objects (CDO) 1.21 library DLL from this Microsoft download URL. Family ID=2714320d-c997-4de1-986f-24f081725d36&Display Lang=en ********* * ERROR * ********* Build Version 6.5.7888 setup program keeps refusing to install the CDO 1.2.1 library unless Microsoft Office Outlook 2007 is installed. 3) OL: How to Programmatically Retrieve Fully Qualified E-mail Addresses URL: *********** * SUCCESS * *********** After successful installation, add "Reference" as in Step #1. kbid=324530 Reference Article from MSDN website that shows how to retrieve the Sender's Email Address from the MAPI. *----------------* 4) * VERY IMPORTANT * *----------------* For Visual Studio 2005 (or) . NET 2.0, "Platform Target" property in the Project Properties must be set to "x86".
[STAThread] static void Main(string args) Hi, Thanks for your useful reply,i have the following on my case : 1) i dont have other than one target platform on my VS 2005 which is "Any CPU".