Package builder error: "Could not load file or assembly 'file://.../Package Builder/bin/Spotfire.Dxp.Deployment.DLL' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)".

Package builder error: "Could not load file or assembly 'file://.../Package Builder/bin/Spotfire.Dxp.Deployment.DLL' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)".

book

Article ID: KB0082539

calendar_today

Updated On:

Products Versions
Spotfire Developer All Versions

Description

Package builder error: "Could not load file or assembly 'file://.../Package Builder/bin/Spotfire.Dxp.Deployment.DLL' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)".
 
Error Signature:
Error message: 
Could not load file or assembly 'file:///C:/TIBCO.SDK/Package Builder/bin/Spotfire.Dxp.Deployment.DLL' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)


FileLoadException at mscorlib:
Could not load file or assembly 'file:///C:/TIBCO.SDK/Package Builder/bin/Spotfire.Dxp.Deployment.DLL' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) (HRESULT: 80131515)

Stack Trace:
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence)
   at System.Activator.CreateInstanceFromInternal(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
   at System.AppDomain.CreateInstanceFrom(String assemblyFile, String typeName)
   at System.AppDomain.CreateInstanceFromAndUnwrap(String assemblyName, String typeName)
   at System.AppDomain.CreateInstanceFromAndUnwrap(String assemblyName, String typeName)
   at Spotfire.Dxp.Deployment.AssemblyReflector.CreateRemoteAssemblyReflector(AppDomain& appDomain, List`1 assemblyBindings, String applicationBaseFolder)
   at Spotfire.Dxp.PackageBuilder.Controls.AddProjectWizard.nextAndFinishButton_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


NotSupportedException at :
An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information. (HRESULT: 80131515)

Stack Trace:
 
The error message suggests that Windows might have blocked the Spotfire assemblies. It appears to be caused by a Windows protection mechanism. 

Issue/Introduction

Package builder error: "Could not load file or assembly 'file://.../Package Builder/bin/Spotfire.Dxp.Deployment.DLL' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)".

Resolution

While it is possible to "unblock" every assembly file individually, you may want to unblock the entire downloaded SDK zip archive. To do so, right-click on the original SDK archive and select 'Properties' to view attributes. At the bottom of the General tab, verify if Windows displays a warning message about blocking the file. If you have such a message, click on the "Unblock" option and re-extract the archive. After you have added a Spotfire distribution to the Package builder, validate the distribution.