VSTO August CTP COM Exception
- I wrote an application that traverses the contact folders and the contacts within Outlook using the BETA 2 bits. I moved to the August CTP and everything works except for the COM reference to the Outlook 11.0 library. Everytime I enter the section of code (see below) below I get a nasty COM error message. I traced the CLSID to the Outlook 11.0 library however I can't find a way to fix the problem. I tried reinstalling the Outlook 2003 PIA and reinstalled the VSTO 2005 bits with no luck.
Windows XP SP2 / Outlook 2003 / VS 2005 August CTP / VSTO 2005 August CTP
ERROR:
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154.
CODE:
try
{
Outlook.
Application app = new Outlook.Application();
Outlook.NameSpace ns = app.GetNamespace("MAPI"); etc...
}
HELP!!
Answers
- FYI
For those that encounter this error try running repair option in the Microsoft Office installer. This resolved the issue for me. Pradeep Kumar Bura wrote: Iam aslo having the same issue...
In my local machine it is working perfeclty, bcz i have MS Office in local.
But when deployed my application on server [MS Office not installed], it's throwing COM exception.
It is not possible to use Office.Interop code without having a licensed version of Office installed on the target machine.
All Replies
- FYI
For those that encounter this error try running repair option in the Microsoft Office installer. This resolved the issue for me. Could you resolve it?????
Thx!!!!!
- Is there a way to resolve this issue without installing MS Office on the Server.
- Hi all
Microsoft.Office.Interop.Outlook.Application objOutlook;
Microsoft.Office.Interop.Outlook.NameSpace objNamespace;
Microsoft.Office.Interop.Outlook.MAPIFolder objMAPIFolder;
Microsoft.Office.Interop.Outlook.MailItem objItem;
Microsoft.Office.Interop.Outlook.UserProperty objProp;
I use this piece of code to generate new message Outlook window
I am using the reference Microsoft.office.Interop.Outlook,version=11.0.0.0 from the Product Microsoft office 2003
It works in fine in development System
When I Install my application in the clinet machine ,where I dont have Microsoft office 2003
So It throws
Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80040154.
Still I can Find the Microsoft.office.Interop.Outlook,version=11.0.0.0 in the GAC
What is the cause
How Can I achieve this ,With out Installing Microsoft office 2003 in the Client machine
Any help is Greatly Appreciated Hi,
Iam aslo having the same issue...
In my local machine it is working perfeclty, bcz i have MS Office in local.
But when deployed my application on server [MS Office not installed], it's throwing COM exception.
Please help me to resolve this issue..
Thanks in advance...
Pradeep Kumar Bura wrote: Iam aslo having the same issue...
In my local machine it is working perfeclty, bcz i have MS Office in local.
But when deployed my application on server [MS Office not installed], it's throwing COM exception.
It is not possible to use Office.Interop code without having a licensed version of Office installed on the target machine.

