The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Deploying a Managed COM Add-in using an Outlook Shim

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Richard Jonas

Posts: 147
Nickname: rjonas
Registered: Nov, 2005

Richard Jonas is a .NET sofware developer living in the UK.
Deploying a Managed COM Add-in using an Outlook Shim Posted: Mar 7, 2006 10:24 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Richard Jonas.
Original Post: Deploying a Managed COM Add-in using an Outlook Shim
Feed Title: Richard Jonas
Feed URL: http://feeds.feedburner.com/blogspot/ouNA
Feed Description: Richard Jonas's blog about .NET, web development and agile methodologies.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Richard Jonas
Latest Posts From Richard Jonas

Advertisement
I have been trying to get a managed code outlook add-in to work using an "Outlook Shim", to remove a warning message about a potential security risk. This allows the add-in to be trusted without trusting all .NET managed code add-ins.

I followed the instructions in "Using the COM Add-in Shim Solution to Deploy Managed COM Add-ins in Office XP". There were a couple of small issues that I’ve recorded here in case anyone else is trying this or I need to do this again.

The Managed Code add-in needs to have a strong name. I needed to make some configuration changes to generate this. Firstly, I added the "AssemblyKeyFileAttribute" to the AssemblyInfo.cs file, like this.

[assembly: AssemblyVersion("1.0.*"), AssemblyKeyFileAttribute("..\\..\\Project.snk")]

I then found that my project referenced Microsoft.Office.Core. This is not strongly named, and this stops the managed code add-in from building. To get around this, I downloaded the Primary Interop Assemblies from here
and replaced the references with these DLLs.

Apart from this, the instructions, although long and initially very daunting, seem to work. Does this need to be this complicated? There is a very strong temptation for people to instruct their users to ignore security risks and if they do so in your application they may think it's OK to do so at other times.

Read: Deploying a Managed COM Add-in using an Outlook Shim

Topic: Vista CTP 5308 - Installing Windows SDK/WinFX CTP Previous Topic   Next Topic Topic: CMS / CS / MSIB going forward

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use