Re: Error: Cannot Create ActiveX Component in Outlook 2007



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




.



Relevant Pages

  • Themes Work-around for Stand-alone Outlook
    ... Am I going to discover more incompatibility issues with my stand-alone ... Outlook software? ... When I had my PC built, I ordered the installation of Microsoft Office as I ...
    (microsoft.public.outlook.installation)
  • Error: Cannot Create ActiveX Component in Outlook 2007
    ... I have a program that I've tested on a multitude of systems and it works ... If gOutlookApplication Is Nothing Then ... MsgBox("Failed Startup of Outlook Application. ... GetObject(, "Outlook.Application") fails even if Outlook is open. ...
    (microsoft.public.outlook.program_vba)
  • Stand-Alone CA and AD
    ... I have just installed a stand-alone CA. ... not integrated in my local domain. ... Domain users use outlook as mailer software. ... Can I publish revocated certificates in my Active Directory or in share ...
    (microsoft.public.win2000.general)
  • CA et GPO, Certifcate Revocation List
    ... I have just installed a stand-alone CA. ... not integrated in my local domain. ... Domain users use outlook as mailer software. ... Can I publish revocated certificates in my Active Directory or in share ...
    (microsoft.public.win2000.group_policy)
  • CAn CRL and GPO
    ... I have just installed a stand-alone CA. ... not integrated in my local domain. ... Domain users use outlook as mailer software. ... Can I publish revocated certificates in my Active Directory or in share ...
    (microsoft.public.windows.server.security)