Outlook 2003 Add-in with Visual Studio 2005?

Thinking of building an add-in for Outlook 2003 with Visual Studio 2005? Don't do it. Really, don't do it. What? Ok, if you must...

I've just spend the last three days building an add-in and installing on on a single PC. This totaled about 3 hours of development time and the rest was getting the darn thing to load! Honestly, it was the single most frustrating thing I've ever encountered in years.

The problem was that the setup program that Visual Studio 2005 automatically generates when you create an add-in project doesn't include everything you need.

Here is how I fixed the problem:

Before you can load your add-in you need to make sure the following is installed:

After that you'll need to "fully trust" your assemblies. This can only be done with signed assemblies. I remember being a pain with VS 2003 but turns out is a breeze with VS 2005. Just open up the Properties for the project and select the Signing tab. From there is was fairly self explanatory.

Now comes the part that gave me problems. After you have everything installed (including your nice newly signed assemblies) you need to give permission to those assemblies. This is done using a tool called CASPOL.EXE. Here is the command line for registering your file:

caspol -u -ag All_Code -url "<full path to your file>" FullTrust -n "<assembly name>"

If you have more than one file (or the above didn't work) you can also do this for a directory.

caspol -u -ag All_Code -url "<directory path>\*" FullTrust

I hope this helps save someone from the pain I experienced over the last few days. Hopefully this will get easier with the next release of Visual Studio...

Updated to reference Outlook 2003. I wasn't clear about that in the original post.

9 Comments

  • Nice
    [URL=http://chevrolet-pickup.thesaabworkshop.info/dieter-zetsche-mercedes-car-group.htm#] dieter zetsche mercedes car group [/URL]
    http://chevrolet-pickup.thesaabworkshop.info/dieter-zetsche-mercedes-car-group.htm dieter zetsche mercedes car group
    [URL=http://toyota-fordham.thesaabworkshop.info/toyota-truck-parts-and-accessories.htm#] toyota truck parts and accessories [/URL]
    http://toyota-fordham.thesaabworkshop.info/toyota-truck-parts-and-accessories.htm toyota truck parts and accessories
    [URL=http://chevrolet-pickup.thesaabworkshop.info/2001-dodge-fuel-mileage-neon-rt.htm#] 2001 dodge fuel mileage neon rt [/URL]
    http://chevrolet-pickup.thesaabworkshop.info/2001-dodge-fuel-mileage-neon-rt.htm 2001 dodge fuel mileage neon rt
    [URL=http://bexley-chevrolet.thesaabworkshop.info/car-rental-modesto-california.htm#] car rental modesto california [/URL]
    http://bexley-chevrolet.thesaabworkshop.info/car-rental-modesto-california.htm car rental modesto california
    [URL=http://chevrolet-vt.thesaabworkshop.info/used-car-buyers-boston.htm#] used car buyers boston [/URL]
    http://chevrolet-vt.thesaabworkshop.info/used-car-buyers-boston.htm used car buyers boston

  • freeholdn.j. [url=http://www.glandered.info/freehold81.html]freeholdn.j.[/url] freeholdn.j. http://www.glandered.info/freehold81.html,creature consciousness rosenthal [url=http://www.micapullo.info/rosenthal33.html]creature consciousness rosenthal[/url] creature consciousness rosenthal http://www.micapullo.info/rosenthal33.html,laura rosenthal [url=http://www.micapullo.info/rosenthal33.html]laura rosenthal[/url] laura rosenthal http://www.micapullo.info/rosenthal33.html,truth behind busta rhymes anarchy [url=http://www.habatierra.info/anarchy81.html]truth behind busta rhymes anarchy[/url] truth behind busta rhymes anarchy http://www.habatierra.info/anarchy81.html,lumber yards minneapolis [url=http://www.suglande.info/minneapolis39.html]lumber yards minneapolis[/url] lumber yards minneapolis http://www.suglande.info/minneapolis39.html,

  • canadian engraved pet id tag [url=http://www.wuznation.info/engraved21.html]canadian engraved pet id tag[/url] canadian engraved pet id tag http://www.wuznation.info/engraved21.html,turtle trot race results juno beach florida may 2006 [url=http://www.habatierra.info/trot36.html]turtle trot race results juno beach florida may 2006[/url] turtle trot race results juno beach florida may 2006 http://www.habatierra.info/trot36.html,false hepatitis b core antibody hbcab tests [url=http://www.suglande.info/antibody82.html]false hepatitis b core antibody hbcab tests[/url] false hepatitis b core antibody hbcab tests http://www.suglande.info/antibody82.html,entity authentication schemes using braid word reduction [url=http://www.habadirecto.info/braid15.html]entity authentication schemes using braid word reduction[/url] entity authentication schemes using braid word reduction http://www.habadirecto.info/braid15.html,retrofit insulation [url=http://www.facilhaba.info/retrofit31.html]retrofit insulation[/url] retrofit insulation http://www.facilhaba.info/retrofit31.html,

  • eFront-Интернет магазин Бытовой и компьютерной техники www.e-front.com.ua

  • и всё эе: спасибо. а82ч

  • Now how can we install that add in in outlook 2007 as well?

  • Surprisingly! It is like you understand my mind! You seem to know so much about this, just like you wrote the book in it or something. I think that you can do with some pics to drive the content home a bit, but other than that, this is informative blog post. A good read. I’ll definitely revisit again.

  • excellent work!!!, thanks

  • Do you have any more info on this?

Comments have been disabled for this content.