Error: Cannot Create ActiveX Component in Outlook 2007



The environment is Office 2007 with outlook 2007 running on Windows Vista with
UAC Enabled.

I have a program that I've tested on a multitude of systems and it works
However, I have a client that has the particular problem that when I call
createobject("Outlook.Application"), I get a message "Cannot Create ActiveX
Component". Here's a sample of the code.

On Error Resume Next
gOutlookApplication = GetObject(, "Outlook.Application")
If gOutlookApplication Is Nothing Then
gOutlookApplication = CreateObject("Outlook.Application")
End If
If gOutlookApplication Is Nothing Then
MsgBox("Failed Startup of Outlook Application. Exiting..." &
vbCrLf & "Error: " & Err.Description)
Exit Function
end if

I have tried to run this with Outlook open and the gOutlookApplication =
GetObject(, "Outlook.Application") fails even if Outlook is open.

I am using VB.Net 2005. So, what causes this disconnect between Outlook and
accessing it? All firewall and anti-virus are disabled.

Any clues????

Ken Slovak - [MVP - Outlook]

Is this a stand-alone application or a COM addin?

Is the problem only on that machine, all others are OK?

If a stand-alone application and it's OK on all other machines then you must
look and see what other software is integrating with Outlook on that

One possible cause could be a script stopper, even if the A-V or firewall is
stopped that might still be running as a service.

I've also seen that happen in stand-alone applications due to some other
software doing something to lock the Outlook session, usually
unintentionally. Some earlier versions of the Skype integration with Outlook
did that, as do some other applications I've seen.

Mostly you have to find the difference on that machine from others where the
software works.



Thanx for the info re. Skype. I'll check that.

This is a standalone application and the problem is only on this machine.
However, I can't look at other machines on the customer's site. I have this
application running on hundreds of other systems.

The error happens also with Outlook open where gOutlookApplication =
GetObject(, "Outlook.Application") should get the object but does not. Also,
I login to the customer's pc with GoToMeeting and I can't access Outlook at
all through the interface. I can access all the other applications but not

I am going to get on his machine and start shutting down things and see what
software that is running that blocks everything to do with Outlook.

What piece of software can be so wicked?


Ken Slovak - [MVP - Outlook]

What piece of software can be so wicked?

:Lots of them :(

I've found over a dozen that cause that or similar problems. Where I can I
contact the developers and let them know but I've also been blown off a
number of times by companies that just don't care.

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