Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to connect to outlook through my externalp program

sample code is:

C#
 ContactItem contact1 = new ContactItem();
contact1.Email1Address=name+"@XX.com";
this.CreateEmailItem(subjectEmail, contact1.Email1Address, bodyEmail);


but during creation of contactItem object i am getting run time error like

ERROR:

C#
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll

Additional information: Retrieving the COM class factory for component with CLSID {00061031-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).


i followed all things like i have tried with both 32 and 64 bit microsoft.office.interop.outlook dll

please suggest me some solutions


thanks in advance.
Posted
Updated 29-Oct-14 23:27pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900