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 / Interop / July 2006

Tip: Looking for answers? Try searching our database.

New Outlook.Application Causes Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
737jetjock@gmail.com - 05 Jul 2006 02:35 GMT
In VB6, all my code works if I use an existing instance of Outllook,
but if I try to instantiate a new instance, I get Error 2147023782.
This happens if I use early or late binding. Both of the following code
snippets fail:

Dim objOutlook As Outlook.Application
Set objOutlook = New Outlook.Application

Dim objOutlook As Object
Set objOutlook = CreateObject("Outlook.Application")

This problem just started. The only thing I have changed recently on my
computer is installing a new version of Norton SystemWorks.

Can anyone give me any ideas as to how to fix the problem?

Thanks,

Mike
Ken Slovak - [MVP - Outlook] - 05 Jul 2006 14:57 GMT
Disable the Norton script stopper.

Signature

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

> In VB6, all my code works if I use an existing instance of Outllook,
> but if I try to instantiate a new instance, I get Error 2147023782.
[quoted text clipped - 15 lines]
>
> Mike
737jetjock@gmail.com - 09 Jul 2006 18:48 GMT
Thanks for the suggestion, Ken. Actually, I tried that as well as
disabling Norton AV and Norton Internet Security. I still got the
error. However, I have since found a solution to the problem. If I
replace the following code:

Dim objOutlook As Object
Set objOutlook = CreateObject("Outlook.Application")

with:

Dim objOutlook As Object
Set objOutlook = CreateObject("Outlook.Application", "localhost")

the error doesn't occur. I'm not sure why the "localhost" argument was
suddenly required to work, when it wasn't required before, but at least
it works.

Thanks,

Mike

> Disable the Norton script stopper.
>
[quoted text clipped - 25 lines]
> >
> > Mike
Ken Slovak - [MVP - Outlook] - 10 Jul 2006 19:24 GMT
That looks like something Norton screwed up. Localhost is what Norton
substitutes for your email servers so it can intercept outgoing/incoming
emails to scan them. I've never heard of it anywhere else related to Outlook
as long as you're running locally and not under some Web hosted application.

Signature

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

> Thanks for the suggestion, Ken. Actually, I tried that as well as
> disabling Norton AV and Norton Internet Security. I still got the
[quoted text clipped - 46 lines]
>> >
>> > Mike
737jetjock@gmail.com - 11 Jul 2006 23:49 GMT
That could be. I passed the info along to Symantec. Hopefully, if they
did something to cause it, they will fix the problem.

Mike

> That looks like something Norton screwed up. Localhost is what Norton
> substitutes for your email servers so it can intercept outgoing/incoming
[quoted text clipped - 59 lines]
> >> >
> >> > Mike
 
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.