Errors loading add-ins created with VSTO SE

A

Ayo

Hi,
I have a problem that was not there in VSTO V3. But now after installing
VSTO SE Beta the addins that works in Office 2007 Beta2 CTP are no longer
working in Office 2007 Beta2TR.
Word Options Add-ins list it under inactive add-ins.
In COM Add-ins it says under Load Behaviour "Not Loaded. A runtime error
occurred during the loading of the COM add-in". The errors is not displayed
even though the "Show add-in user interface errors checkbox" is checked. If
the VSTO project is executed by clicking the debug button the addin work
perfectly. The error only occurred when installed by double clicking the
setup.exe in debug folder or by right clicking the Setup project in VSTO and
installing it. This is true for addins created for PowerPoint too. Registry
entries are the same when installed in any of the way mentioned above. So I
guess the registry entries are ok.
Iam using VSTO SE Beta with Visual Studio 2005 prof. and Office 2007
Beta2TR. The error occurred in both WinXP and Vista. Please kindly give me a
pointer on this. Thanks
 
A

Ayo

After setting the environment variable "VSTO_SUPPRESSDISPLAYALERT=0", the
error message displayed is "An Add-in could not be found or could not be
loaded". On clicking the details button the errors given below is shown.

"Could not load file or assembly 'WordAddIn1, 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 'WordAddIn1,
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: 'WordAddIn1, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null' ---> System.Security.Policy.PolicyException: Execution
permission cannot be acquired.
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Boolean checkExecutionPermission)
at System.Security.SecurityManager.ResolvePolicy(Evidence evidence,
PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset,
PermissionSet& denied, Int32& securitySpecialFlags, Boolean
checkExecutionPermission)
at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.HandleOnlineOffline(Exception e, String basePath, String filePath)
at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.LoadStartupAssembly(EntryPoint
entryPoint, Dependency dependency, Dictionary`2 assembliesHash)
at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.ConfigureAppDomain()
at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.LoadAssembliesAndConfigureAppDomain(IHostServiceProvider serviceProvider)
at
Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.LoadEntryPointsHelper(IHostServiceProvider serviceProvider)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.112 (rtmLHS.050727-1100)
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.444
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.112 (rtmLHS.050727-1100)
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.112 (rtmLHS.050727-1100)
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.444
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.112 (rtmLHS.050727-1100)
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.112 (rtmLHS.050727-1100)
CodeBase:
file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top