Ask a questionAsk a question
 

AnswerVSTO August CTP COM Exception

  • Tuesday, August 30, 2005 2:33 PMCAC90 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

  • Wednesday, August 31, 2005 2:53 PMCAC90 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    FYI

    For those that encounter this error try running repair option in the Microsoft Office installer. This resolved the issue for me.



  • Wednesday, September 17, 2008 12:34 PMCindy MeisterMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
     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

  • Wednesday, August 31, 2005 2:53 PMCAC90 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    FYI

    For those that encounter this error try running repair option in the Microsoft Office installer. This resolved the issue for me.



  • Monday, February 26, 2007 5:41 PMrodizzio Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Could you resolve it?????

    Thx!!!!!

  • Thursday, June 14, 2007 12:23 PMUsr_Anonymous Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Is there a way to resolve this issue without installing MS Office on the Server.
  • Thursday, September 11, 2008 8:58 AMMaddy06 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

  • Tuesday, September 16, 2008 7:23 PMPradeep Kumar Bura Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

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

     

     

  • Wednesday, September 17, 2008 12:34 PMCindy MeisterMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
     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.