Repair or reinstall MAPI

A

Amit M.

I have a COM Addin for Outlook written in VB6 and the following line works on
99.9% of the machines it runs on:

Set objNS = Application.GetNamespace("MAPI")

On some machines, this line returns an error ("ActiveX could not create
object") and my addin cannot run. I found that this only happens on NEW
machines that come with Office preinstalled. So far, my only solutions is to
uninstall and reinstall office (detect and repair does not work, nor does a
straight reinstall) to replace/install the mapi components.

Does anyone know a better way to do this?

Thanks,
Amit
 
K

Ken Slovak - [MVP - Outlook]

There's a FixMAPI.exe that can be used to reset the MAPI DLL's and
MAPISVC.INF, that might work for you. It's installed along with Outlook.
 
A

Amit M.

Just had another user with the same issue. Ran FixMAPI.exe and it did not
resolve it. Any other suggestions?
 
K

Ken Slovak - [MVP - Outlook]

Not specifically. The only thing I can think of is to take a copy of the
MAPISVC.INF file on a machine where things don't work and one from a machine
where they do and see what if any differences there are.
 
Top