Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / May 2008

Tip: Looking for answers? Try searching our database.

Error: Cannot Create ActiveX Component in Outlook 2007

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thatch - 07 May 2008 00:31 GMT
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????
Ken Slovak - [MVP - Outlook] - 07 May 2008 14:13 GMT
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.

Signature

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

> The environment is Office 2007 with outlook 2007 running on Windows Vista
> with
[quoted text clipped - 27 lines]
>
> Any clues????
Thatch - 07 May 2008 19:26 GMT
Ken,

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
Outlook.

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?

T

> Is this a stand-alone application or a COM addin?
>
[quoted text clipped - 46 lines]
> >
> > Any clues????
Ken Slovak - [MVP - Outlook] - 07 May 2008 20:16 GMT
> 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.

Signature

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

> Ken,
>
[quoted text clipped - 20 lines]
>
> T

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.