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 / September 2004

Tip: Looking for answers? Try searching our database.

C# .NET Addin for Outlook 2003 registration problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sidd Goyal - 27 Sep 2004 15:21 GMT
I've created a shared AddIn for Outlook 2003 written in C# using
Visual Studio .NET.  The AddIn is used to synchronize Outlook contact
information with an ODBC data source.  I'm having a problem getting
the AddIn to load properly when I install when its Installer (I know
the AddIn is loaded when a button is displayed in the Outlook
toolbar).  Specifically when I include a class in the AddIn that
references a class in a namespace outside of the "System" namespace
heirarchy the AddIn fails to load properly (i.e. the button does not
show up).  I figure there is something wrong in the way I'm
referencing external DLLs when I build the project.  Any ideas on how
to properly reference (and include) external DLLs in a shared AddIn
project would be greatly appreciated.  Thanks.

Sidd Goyal
sgoyal00@yahoo.com
Sunny - 28 Sep 2004 15:03 GMT
Hi,

Your addin runs in the Outlook's process, so its working folder is the
folder from which Outlook.exe was started. And it tries to find its
external assemblies in that folder.

You have 3 possibilities:
1. copy the .dlls in the outlook folder.
2. register these dlls in GAC
3. (I use this), capture AppDpmain.AssemblyResolve event and load the
assemblies from your own folder.

Hope that helps
Sunny

> I've created a shared AddIn for Outlook 2003 written in C# using
> Visual Studio .NET.  The AddIn is used to synchronize Outlook contact
[quoted text clipped - 11 lines]
> Sidd Goyal
> sgoyal00@yahoo.com
 
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.