A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Permissions problem during VSTO addin loading



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old August 2nd 07, 10:26 PM posted to microsoft.public.outlook.program_addins
Rajesh K
external usenet poster
 
Posts: 11
Default Permissions problem during VSTO addin loading

Hi,
My addin [based on OutlookRibbonXVB_VSTO sample] was not getting loaded on
a non-devlopment machine [Vista + O2k7] . When I set env variable
VSTO_SUPPRESSDISPLAYALERTS to 0, I get a log which indicates my permissions
are somehow wrong. This is also true with UAC turned off.
Maybe everyone else know how to get around this problem but not me

Hope someone can help ... I was under the impression that addins are
implicitly trusted.
Thanks
Rajesh K

Could not load file or assembly 'TrustToneRibbonXVB_VSTO, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to
grant permission to execute. (Exception from HRESULT: 0x80131418)


************** Exception Text **************
System.IO.FileLoadException: Could not load file or assembly
'TrustToneRibbonXVB_VSTO, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. Failed to grant permission
to execute. (Exception from HRESULT: 0x80131418)
File name: 'TrustToneRibbonXVB_VSTO, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null' --- System.Security.Policy.PolicyException: Execution
permission cannot be acquired.
at System.Security.SecurityManager.ResolvePolicy(Evid ence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Boolean checkExecutionPermission)
at System.Security.SecurityManager.ResolvePolicy(Evid ence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Int32& securitySpecialFlags, Boolean
checkExecutionPermission)
at
Microsoft.VisualStudio.Tools.Applications.Runtime. AppDomainManagerInternal.HandleOnlineOffline(Excep tion e, String basePath, String filePath)
at
Microsoft.VisualStudio.Tools.Applications.Runtime. AppDomainManagerInternal.LoadStartupAssembly(Entry Point
entryPoint, Dependency dependency, Dictionary`2 assembliesHash)
at
Microsoft.VisualStudio.Tools.Applications.Runtime. AppDomainManagerInternal.ConfigureAppDomain()
at
Microsoft.VisualStudio.Tools.Applications.Runtime. AppDomainManagerInternal.LoadAssembliesAndConfigur eAppDomain(IHostServiceProvider serviceProvider)
at
Microsoft.VisualStudio.Tools.Applications.Runtime. AppDomainManagerInternal.LoadEntryPointsHelper(IHo stServiceProvider serviceProvider)




************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
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.816
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.312 (rtmLHS.050727-3100)
CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.Office.Tools.Common
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.816
CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Office.Tools.Common/8.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.312 (rtmLHS.050727-3100)
CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
outlook addin setup problem - created using vsto suman Outlook - Using Forms 1 July 16th 07 10:11 PM
VSTO Outlook Addin doesn't get loaded for non-admin user Piyush Gupta Add-ins for Outlook 5 May 9th 07 07:24 PM
VSTO Outlook 2003 - problem with actions Eddie Add-ins for Outlook 4 November 6th 06 05:00 PM
Problem while loading MPAI exported PST file [email protected] Outlook - General Queries 20 September 6th 06 07:30 PM
Outlook-Addin is not loading AtulSureka Outlook - Using Forms 0 August 3rd 06 02:53 PM


All times are GMT +1. The time now is 11:14 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.