Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming Add-Ins / August 2005

Tip: Looking for answers? Try searching our database.

OnConnection doesn't fire

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
morten.marquard@gmail.com - 12 Aug 2005 13:25 GMT
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
Sue Mosher [MVP-Outlook] - 12 Aug 2005 13:39 GMT
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.

Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> Hi,
> I have developed an Outlook Add-in in VS.NET 2003 for Outlook XP. I use
[quoted text clipped - 21 lines]
> Tx
> Morten
morten.marquard@gmail.com - 12 Aug 2005 13:54 GMT
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
morten.marquard@gmail.com - 12 Aug 2005 15:59 GMT
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
morten.marquard@gmail.com - 13 Aug 2005 13:21 GMT
Obviously others have the same problem -->
http://groups.google.com/group/microsoft.public.outlook.program_addins/browse_th
read/thread/7fb7d72364bb0398/837ffcd11b8421cb?q=mscorlib.dll&rnum=2#837ffcd11b84
21cb


Have tried to remove the office.dll - does anyone have a list of the
exact DLL's one need?

Tx
Morten
morten.marquard@gmail.com - 15 Aug 2005 19:44 GMT
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/o
dc_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

> Obviously others have the same problem -->
> http://groups.google.com/group/microsoft.public.outlook.program_addins/browse_th
read/thread/7fb7d72364bb0398/837ffcd11b8421cb?q=mscorlib.dll&rnum=2#837ffcd11b84
21cb

[quoted text clipped - 4 lines]
> Tx
> Morten
travis - 22 Aug 2005 16:53 GMT
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

> Obviously others have the same problem -->
> http://groups.google.com/group/microsoft.public.outlook.program_addins/browse_th
read/thread/7fb7d72364bb0398/837ffcd11b8421cb?q=mscorlib.dll&rnum=2#837ffcd11b84
21cb

[quoted text clipped - 4 lines]
> Tx
> Morten
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.