Skip to main content
Planview Customer Success Center

.NET Error when running SQLImport.exe for an upgrade or a patch

Symptoms

When running SQLImport.exe to install a patch or to upgrade a database, the following message is generated:

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, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkID=155569 for more information.

Reason

A file is being blocked by the operating system, most likely because the installer has been downloaded or copied from a network location.

Resolution

Before unzipping the patch/installer, open the properties of the zip file and select the "Unblock" check box.

If the original zip is no longer available, you can do the following:

  1. Open a PowerShell prompt.
  2. cd into the folder that has the installer.
  3. Execute the following command:

Get-ChildItem -recurse | Unblock-File