OnConnection doesn't fire

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
 
S

Sue Mosher [MVP-Outlook]

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

morten.marquard

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
 
M

morten.marquard

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
 
M

morten.marquard

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
 
G

Guest

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
 

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