Error automating outlook from .net

J

John

Hi

I created a setup file of my vb.net app and remotely installed it on a
client's machine. The app bombs at start-up with the error;

Error while initializing application: Retrieving the COM class factory for
component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to
the following error: 8007007e.

The application also gave a stack trace which is given below at the end.
What's more there is no JIT debugger on the target system. In OleView when I
try to expand the Microsoft Outlook 8.0 Object Library node by clicking on
the + sign I get the below error;

CoGetClassObject failed.
The specified module could not be found.
Severity: SEVERITY_ERROR, facility: FACILITY_WIN32 ($8007007E)

The machine has outlook 2003 installed. The app installs and run just fine
on other outlook 2003 machines at same client site.What is the problem and
how can I proceed from here specially when I have little or no way to debug
the app on the target system.

Thanks

Regards
 
K

Ken Slovak - [MVP - Outlook]

Do you mean the Outlook 9 library and not 8? 8 is for Outlook 97, which
didn't support COM addins.

Are you really trying to support Outlook 2000 with a reference to the
Outlook 9 library? What versions are you really supporting and what object
reference are you using?

Are you sure the appropriate PIA's and the Framework are installed on the
target machine, as well as dependencies such as stdole.dll and
extensibility.dll? Was the Framework installed before installing Office
2003? If not you will need to install KB 908002 in addition to any other
dependencies, requirements and pre-requisites.
 
J

John

Hi Ken

That is what I saw there i.e. 8 even though the machine has outlook 2003 for
sure. No I am not going craze.

Thanks

Regards
 
J

John

Ken, I think all dlls are installed as two other pcs with outlook 2003 at
same client had no problem with same setup file. Setup file demands .net 3.5
installation so there is no way round not installing 3.5 fw.

Thanks

Regards
 
J

John

I have uninstalled and reinstalled office 2003 and its working fine now.

Thanks

Regards
 
K

Ken Slovak - [MVP - Outlook]

That was the next recommendation, based on that Outlook 8 snafu.

For future reference, it really doesn't matter if your code requires
Framework 3.0 or 3.5 or 2.0 or whatever. If the Framework is installed after
Office is installed then you still need to install KB 908002, and to make
sure the PIA's are installed. Those requirements may not be met in all
cases.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top