A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Runtime error 80004005 Creating Outlook.Application



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 13th 06, 09:31 PM posted to microsoft.public.outlook.program_addins
Dave
external usenet poster
 
Posts: 15
Default Runtime error 80004005 Creating Outlook.Application

Anyone

When trying to create the Outlook Object model from within a VB application
I get Runtime error 80004005 Creating Outlook.Application object. The PC is
running Windows XP Home with Outlook 2003. I've tried messing around with
internet security settings, I tried the Sue Mosher suggestion of looking for
script blocking and turning it off. I have turned off firewalls pretty much
everything I can think off. Anyone have any other ideas ?

Dave

Code will throw the error on either the New Outlook.Application or
CreateObject("Outlook.Application")

On Error Resume Next
Set g_oe = New Outlook.Application
If (err.Number 0) Then
err.Clear
Set g_oe = Nothing
Set g_ol = CreateObject("Outlook.Application", "localhost")
If (err.Number 0) Then
err.Clear
Set g_ol = Nothing
Exit Sub
End If
Set g_ns = g_ol.GetNamespace("MAPI")
Else
Logit "frmContacts - Done Loading Outlook Object"
Set g_ns = g_oe.GetNamespace("MAPI")
End If
Set g_fldr = g_ns.GetDefaultFolder(olFolderContacts)



Ads
  #2  
Old July 14th 06, 02:34 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Runtime error 80004005 Creating Outlook.Application

The most likely problem is a script stopper if New doesn't work and Outlook
is installed and can run.

Why
Set g_ol = CreateObject("Outlook.Application", "localhost") ?

I always just use CreateObject("Outlook.Application")

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Dave" wrote in message
...
Anyone

When trying to create the Outlook Object model from within a VB
application
I get Runtime error 80004005 Creating Outlook.Application object. The PC
is
running Windows XP Home with Outlook 2003. I've tried messing around with
internet security settings, I tried the Sue Mosher suggestion of looking
for
script blocking and turning it off. I have turned off firewalls pretty
much
everything I can think off. Anyone have any other ideas ?

Dave

Code will throw the error on either the New Outlook.Application or
CreateObject("Outlook.Application")

On Error Resume Next
Set g_oe = New Outlook.Application
If (err.Number 0) Then
err.Clear
Set g_oe = Nothing
Set g_ol = CreateObject("Outlook.Application", "localhost")
If (err.Number 0) Then
err.Clear
Set g_ol = Nothing
Exit Sub
End If
Set g_ns = g_ol.GetNamespace("MAPI")
Else
Logit "frmContacts - Done Loading Outlook Object"
Set g_ns = g_oe.GetNamespace("MAPI")
End If
Set g_fldr = g_ns.GetDefaultFolder(olFolderContacts)




  #3  
Old July 14th 06, 03:46 PM posted to microsoft.public.outlook.program_addins
Dave
external usenet poster
 
Posts: 15
Default Runtime error 80004005 Creating Outlook.Application

Does Windows XP have any script stopper features ? Like the security zone
settings that would cause this type of problem ? I'm running AVG antivirus,
but I completely removed it and I still have the problem.

I actually have it coded as CreateObject("Outlook.Application"), the
localhost addition was desperation, I saw it in a news group post and
thought I'd try it

I looked at the keys in the registry that Sue Mosher noted in a post but I
have not script blocking DLL reference in there.

Any other ideas ?


"Ken Slovak - [MVP - Outlook]" wrote in message
...
The most likely problem is a script stopper if New doesn't work and

Outlook
is installed and can run.

Why
Set g_ol = CreateObject("Outlook.Application", "localhost") ?

I always just use CreateObject("Outlook.Application")

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Dave" wrote in message
...
Anyone

When trying to create the Outlook Object model from within a VB
application
I get Runtime error 80004005 Creating Outlook.Application object. The

PC
is
running Windows XP Home with Outlook 2003. I've tried messing around

with
internet security settings, I tried the Sue Mosher suggestion of looking
for
script blocking and turning it off. I have turned off firewalls pretty
much
everything I can think off. Anyone have any other ideas ?

Dave

Code will throw the error on either the New Outlook.Application or
CreateObject("Outlook.Application")

On Error Resume Next
Set g_oe = New Outlook.Application
If (err.Number 0) Then
err.Clear
Set g_oe = Nothing
Set g_ol = CreateObject("Outlook.Application", "localhost")
If (err.Number 0) Then
err.Clear
Set g_ol = Nothing
Exit Sub
End If
Set g_ns = g_ol.GetNamespace("MAPI")
Else
Logit "frmContacts - Done Loading Outlook Object"
Set g_ns = g_oe.GetNamespace("MAPI")
End If
Set g_fldr = g_ns.GetDefaultFolder(olFolderContacts)






  #4  
Old July 17th 06, 03:50 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Runtime error 80004005 Creating Outlook.Application

No other ideas. AVG doesn't have a script stopper, I use it here on all my
network machines.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Dave" wrote in message
...
Does Windows XP have any script stopper features ? Like the security zone
settings that would cause this type of problem ? I'm running AVG
antivirus,
but I completely removed it and I still have the problem.

I actually have it coded as CreateObject("Outlook.Application"), the
localhost addition was desperation, I saw it in a news group post and
thought I'd try it

I looked at the keys in the registry that Sue Mosher noted in a post but I
have not script blocking DLL reference in there.

Any other ideas ?


  #5  
Old July 17th 06, 10:13 PM posted to microsoft.public.outlook.program_addins
Dave
external usenet poster
 
Posts: 15
Default Runtime error 80004005 Creating Outlook.Application

You know I've had customers bring this to my attention in the past. It's
been an on going problem reported. I know about the script blockers and
have helped users disable them so they can use our applications. For the
first time I actually have a PC that exhibits this problem in my possession
and for the life of me I have no idea what to do to it to get it to work.

This PC is XP Home edition, its the only PC that I have that's got home
edition on it.

Is it possible you think the the object model references have been messed up
? Do you know how to verify them or fix them ? Like re-register them some
how.

Thanks
Dave



"Ken Slovak - [MVP - Outlook]" wrote in message
...
No other ideas. AVG doesn't have a script stopper, I use it here on all my
network machines.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Dave" wrote in message
...
Does Windows XP have any script stopper features ? Like the security

zone
settings that would cause this type of problem ? I'm running AVG
antivirus,
but I completely removed it and I still have the problem.

I actually have it coded as CreateObject("Outlook.Application"), the
localhost addition was desperation, I saw it in a news group post and
thought I'd try it

I looked at the keys in the registry that Sue Mosher noted in a post but

I
have not script blocking DLL reference in there.

Any other ideas ?




  #6  
Old July 18th 06, 02:44 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Runtime error 80004005 Creating Outlook.Application

You could try running Detect and Repair and see if that helps.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Dave" wrote in message
...
You know I've had customers bring this to my attention in the past. It's
been an on going problem reported. I know about the script blockers and
have helped users disable them so they can use our applications. For the
first time I actually have a PC that exhibits this problem in my
possession
and for the life of me I have no idea what to do to it to get it to work.

This PC is XP Home edition, its the only PC that I have that's got home
edition on it.

Is it possible you think the the object model references have been messed
up
? Do you know how to verify them or fix them ? Like re-register them
some
how.

Thanks
Dave


  #7  
Old July 18th 06, 10:18 PM posted to microsoft.public.outlook.program_addins
Dave
external usenet poster
 
Posts: 15
Default Runtime error 80004005 Creating Outlook.Application

Shoot, you're not going to believe it, that fixed it. You know I always
thought that detect and repair was useless and never fixed anything.

Thanks
Dave

"Ken Slovak - [MVP - Outlook]" wrote in message
...
You could try running Detect and Repair and see if that helps.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Dave" wrote in message
...
You know I've had customers bring this to my attention in the past.

It's
been an on going problem reported. I know about the script blockers and
have helped users disable them so they can use our applications. For

the
first time I actually have a PC that exhibits this problem in my
possession
and for the life of me I have no idea what to do to it to get it to

work.

This PC is XP Home edition, its the only PC that I have that's got home
edition on it.

Is it possible you think the the object model references have been

messed
up
? Do you know how to verify them or fix them ? Like re-register them
some
how.

Thanks
Dave




 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2002 (XP) - MAPIFolder.Description - Runtime Error -2113470450 Johannes Harth Outlook and VBA 3 June 30th 06 09:34 PM
Runtime error in opening Outlook 2002 Ajay Bankoti Outlook - Installation 0 March 3rd 06 11:34 AM
Why do I get "Runtime Error! during Outlook Junkmail filter update JOE Outlook - Installation 0 February 18th 06 10:51 PM
Outlook Express error 80004005 chasse//casse.700250amp Outlook Express 7 January 22nd 06 03:31 AM
How do I solve Error 80004005 in outlook interface(2752:0000f003)? Am Outlook - Calandaring 0 January 21st 06 02:30 AM


All times are GMT +1. The time now is 11:52 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.