Question : Outlook 2003 Add-In with VSTO: no permissions

i am using Visual Studio 2008 to deploy an Outlook 2003 Add-In to users in our SBS 2003 domain.
The assembly will not load, citing permissions (error pasted below).
I have tried signing the assembly with a strong name and a certificate, and even tried adjusting permissions with caspol.exe:

caspol -machine -addgroup 1. -url "C:\Program Files\Common Files\Microsoft Shared\VSTO\*" FullTrust

caspol -machine -addgroup 1. -zone MyComputer  FullTrust

Neither seems to get the assembly to load.
Any suggestions please?
Thanks


The customization does not have the required permissions to execute.


************** Exception Text **************
System.Security.SecurityException: The customization does not have the required permissions to execute.
   at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.HandleOnlineOffline(Exception e, String basePath, String filePath)
   at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.CreateCustomizationDomainInternal(Uri uriFullDocumentDirectory, Uri uriFullDocFilePath, String documentName, IHostServiceProvider hostCallback, IAddinSecurityManager secman, AppManifest& applicationManifest, Boolean& manifestDirty, IAppInfo& appInfo)
   at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.CreateCustomizationDomain(String applicationDomainPath, String documentName, IHostServiceProvider hostCallback, IExecuteCustomization& executor)
   at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManager.CreateCustomizationDomain(String applicationDomainPath, String documentName, IHostServiceProvider hostCallback, IExecuteCustomization& executor)
The Zone of the assembly that failed was:
MyComputer


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3603 (GDR.050727-3600)
    CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Runtime
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.940
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Microsoft.Office.Tools.Common
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.940
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.Common/8.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------

Answer : Outlook 2003 Add-In with VSTO: no permissions

Are you deploying ithe Add-in using a setup program?

If so, did you follow the steps shown in the link:
http://msdn.microsoft.com/en-us/library/aa537179(office.11).aspx
(the section "Walkthrough: Enhancing the Outlook Add-in Setup Project")
The project SetSecurity contains the custom actions that do all the security settings for you. I used for an Excel Add-in and it works OK.
Random Solutions  
 
programming4us programming4us