PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Interoperability New Outlook.Application Causes Error

Reply

New Outlook.Application Causes Error

 
Thread Tools Rate Thread
Old 05-07-2006, 02:35 AM   #1
737jetjock@gmail.com
Guest
 
Posts: n/a
Default New Outlook.Application Causes Error


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

  Reply With Quote
Old 05-07-2006, 02:57 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: New Outlook.Application Causes Error

Disable the Norton script stopper.

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


<737jetjock@gmail.com> wrote in message
news:1152063345.729488.70850@p79g2000cwp.googlegroups.com...
> 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
>


  Reply With Quote
Old 09-07-2006, 06:48 PM   #3
737jetjock@gmail.com
Guest
 
Posts: n/a
Default Re: New Outlook.Application Causes Error

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


Ken Slovak - [MVP - Outlook] wrote:
> Disable the Norton script stopper.
>
> --
> 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
>
>
> <737jetjock@gmail.com> wrote in message
> news:1152063345.729488.70850@p79g2000cwp.googlegroups.com...
> > 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
> >


  Reply With Quote
Old 10-07-2006, 07:24 PM   #4
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: New Outlook.Application Causes Error

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.

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


<737jetjock@gmail.com> wrote in message
news:1152467328.973406.135240@35g2000cwc.googlegroups.com...
> 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
>
>
> Ken Slovak - [MVP - Outlook] wrote:
>> Disable the Norton script stopper.
>>
>> --
>> 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
>>
>>
>> <737jetjock@gmail.com> wrote in message
>> news:1152063345.729488.70850@p79g2000cwp.googlegroups.com...
>> > 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
>> >

>


  Reply With Quote
Old 11-07-2006, 11:49 PM   #5
737jetjock@gmail.com
Guest
 
Posts: n/a
Default Re: New Outlook.Application Causes Error

That could be. I passed the info along to Symantec. Hopefully, if they
did something to cause it, they will fix the problem.

Mike

Ken Slovak - [MVP - Outlook] wrote:
> 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.
>
> --
> 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
>
>
> <737jetjock@gmail.com> wrote in message
> news:1152467328.973406.135240@35g2000cwc.googlegroups.com...
> > 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
> >
> >
> > Ken Slovak - [MVP - Outlook] wrote:
> >> Disable the Norton script stopper.
> >>
> >> --
> >> 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
> >>
> >>
> >> <737jetjock@gmail.com> wrote in message
> >> news:1152063345.729488.70850@p79g2000cwp.googlegroups.com...
> >> > 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
> >> >

> >


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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