![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |