VB.NET (VS2005) and Outlook - Can't talk to Outlook!?

T

Tim

Hi,
I hope somebody can help me with a problem I’m experiencing.

We have an application written in VB.NET 2005, which communicates with
Outlook. It uses the PIAs that come with office and apart from getting the
odd Outlook security warning, this has worked really well on every system we
have installed it on until now!

Our latest customer’s PC does not seem to work. It has Outlook 2003 SP2
installed which is consistent with all of the other machines the software is
installed on, but whenever the software attempts to communicate with Outlook
by accessing the Outlook Object Model, nothing happens. This is very
perplexing as you would at least expect an error, but it is like the function
that calls Outlook just stops at the point of creating the Outlook Object,
without generating an error.

Here is a sample from the code;

Dim objOutlook As Microsoft.Office.Interop.Outlook.Application
objOutlook = New Microsoft.Office.Interop.Outlook.Application

By using some good old-fashioned debugging techniques with the offending
computer, we have found that when execution hits one of these two lines, it
just stops (and they are in a try-catch block!). The rest of the app
continues to run without any problems or error messages.

I have checked that all of the correct PIAs are loaded on to the PC and in
the GAC. The .NET programmability support has been loaded with Outlook, in
fact the PC has a complete installation of Office 2003.

Any ideas on this problem would be highly appreciated, as we have exhausted
everything we can think of.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top