Using VB 2005 and creating E-mail acting differently onne machine

  • Thread starter Thread starter Stephen Plotnick
  • Start date Start date
S

Stephen Plotnick

I developed a program that eventually creates an E-mail into the Outbox of
Outlook 2007, using VB 2005.

I now am using a different machine and reinstalled VB 2005 and office 2007.
My problem is I now cannot have Outlook 2007 open or I get an error on the
statement

Dim myOutlook as New Outlook.Application()

In the original computer everything always worked fine on my new machine
everything works fine as long as Outlook is closed at the time I execute my
program. If Outlook isopen I get an exception on the Dim statement.

Can someone please tell me what I must be doing differently in the setup? I
have not changed one line of code. I am running from within the VB studio.

THanks,
Steve
 
Are you running any Outlook addins on the new computer that weren't running
on the old one?

I know of a few addins that prevent a New statement from working when
Outlook is running while the New works when Outlook isn't already running.
The symptom only affects standalone code, not COM addins or Office VBA code
(like from Word as an example).
 
In Trust Center - ADDINS I do not have anything other than some COM Add-ins.

Steve
 
There are some differences with my Office and VB 2005 installs.

Office on new machine has the following programs installed that are not
installed on the old machine.

InfoPath 2007
OneNote 2007
Groove 2007

On the old machine I only have VB loaded, along with tools etc. I do not
have any other languages installed. In the new machine the entire VB
professional 2005 is installed.

Anybody have any ideas if Ishould removed any of these added programs?

Thanks,
Steve
 
Yes, I asked about the addins. Which ones do you have and are any of them
any different than on the other machine?
 
There are to in the new machine that are not in the old machine.

Groove Proxy; system will not allow me to disable HKEY

OneNotes about Outlook items; system will not allow me to disable.

The new machine is Vista Ultimate; the old machine is Vista Home Business

Steve
 
The 2 that you can't disable are probably registered in HKLM and not in
HKCU. You can go to the registry editor (Run, regedit) and set their
LoadBehavior values to 2 instead of 3 when Outlook isn't running to disable
their loading and see if it makes a difference. The path would be
HKLM\Software\Microsoft\Office\Outlook\Addins.

I have no idea what Vista Home does or doesn't do differently than Vista
Ultimate, I only run Ultimate here. It could be a permissions issue or
difference.
 
I uninstalled the Office 2007 and reinstalled without Groove and Notes. Same
problem.

It works on Vista Bus Home and not on Vista Ultimate.

I run as adminstrator (VB 2005) but still get warning. I am adminstrator. I
do not get that warning on my Home Bus. Vista.

I wish I never bought these computers with Vista; more of a headache. So be
it.

Thanks for your help,
Steve
 
Back
Top