Re: Error: Cannot Create ActiveX Component in Outlook 2007
- From: "Ken Slovak - [MVP - Outlook]" <kenslovak@xxxxxxxx>
- Date: Wed, 7 May 2008 09:13:44 -0400
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 machine.
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.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Thatch" <Thatch@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:34CDDBD0-4058-4367-AD33-A892CD531C1F@xxxxxxxxxxxxxxxx
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
great.
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
Err.Clear()
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????
.
- Follow-Ups:
- References:
- Prev by Date: Error: Cannot Create ActiveX Component in Outlook 2007
- Next by Date: Re: Auto-reply
- Previous by thread: Error: Cannot Create ActiveX Component in Outlook 2007
- Next by thread: Re: Error: Cannot Create ActiveX Component in Outlook 2007
- Index(es):
Relevant Pages
|