OnConnection doesn't fire

  • Thread starter Thread starter morten.marquard
  • Start date Start date
M

morten.marquard

Hi,
I have developed an Outlook Add-in in VS.NET 2003 for Outlook XP. I use
the Office PIA - and everything works just fine on my development
machine.

When I deploy the solution builded with VS.NET on a Windows XP machine,
where I have also installed Office PIA (maybe that was the reason for
my issue).

However, OnConnection don't fire. How do I know. Well - I have a MSGBOX
in the beginning of the OnConnection - and call EXIT SUB immediately
after that!

LoadBehavior get set to 2 after - so something did happen.

I have checked for DLL dependency - and didn't find any issues.

The key is in the registry
/HKCU/Software/Microsoft/Office/Outlook/Addins/<xyz>.Connect
and this key is defined correctly, as well as the associated GUID.

How do I find out what the issue is? How do I test it?

Tx
Morten
 
One likely cause is that on the 2nd machine, some other process is starting Outlook without UI -- maybe a PDA sync tool, for example.

However, the fact that LoadBehavior is being set to 2 indicates that an unhandled error may be occurring.
 
Thanks for the reply.

The other machine is a basic Windows XP machine with Office XP - no
additional software, PDA, sync tools etc (or at least not to my
knowledge. Installed the machine last week - std WinXP, std Office XP,
service packs etc- no other software).

How can I figure out what the problem might be?

Tx
Morten
 
The problem might be related to a version mismatch of mscorlib.dll.
When clicking on adodb.dll in the dependency in VS.NET 2003 installer,
mscorlib.dll is marked as YELLOW - and the version is 1.0.3300.0 - not
1.0.5000.0 - the difference between .NET FW 1.0 and 1.1.

I'm not an expert in these matters - advice would be appreciated.

Tx
Morten
 
Finally got it working.

Using the Office PIA isn't easy.

When adding "Microsoft Outlook 10.0 Object Library" as described
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnout2k2/html/odc_oladdinvbnet.asp
VS.NET also adds "office". The reference to this office was wrong.
Therefore my add-in didn't load.

To make it work I therefore added a reference to "office.dll" found in
C:\Windows\Microsoft.net\Framework\v1.1.4322\office.dll BEFORE I added
the reference to "Microsoft Outlook 10.0 Object Library" - then it
worked.

Morten
 
Hello,
I'm developing for Outlook 2003, same as the guy in the link, and I followed
the directions there, but I still can't get it to work on another computer.
Does it actually have anything to do with the dependencies of the
Extensibililty.dll file? Could it be the machine I'm trying to install on?
I've installed the dotnetfx file and the O2003PIA file as well, is there
something that I'm not doing? I need this to start working very quickly, any
and all help is appreciated.
Thanks,
travis
 
Back
Top