NOTE: This article is listed in the following 'checklist' guides: [DSP] Application Installation Errors
Versions: all versions of CranSoft 5.x and associated apps
Issue: When executable files (exe/dll) are downloaded from the Internet or copied from another computer, Windows may flag those files as "blocked". Whether a given file is blocked or not depends on the security policy in place and the configuration of the computer. If files are blocked then errors containing text similar to the example below will be seen, referencing one or other BOA dll (in this case cranportplugin.dll).
The plugin assembly could not be loaded. Could not load file or assembly 'file:///D:\CranSoft\Web\UserArea\00be69ce-b45a-4704-ae2f-c3378e71baa3\Processes\cranport\cranportplugin.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) 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.
Confirming this error is related to blocked files:
Navigate to the file specified and check the Properties (General tab). If there is an Unblock button, then proceed with the resolution below.
Avoiding this error:
Installation instructions for most versions of the CranSoft framework and associated apps advise checking the zip file and unblocking it if necessary, BEFORE unzipping the file and proceeding with the installation.
Resolving this error:
Use the Streams utility to unblock all files in the CranSoft directory structure.
1. Obtain Streams.exe from here: https://technet.microsoft.com/en-us/sysinternals/bb897440.aspx
2. From a command prompt run as administrator, execute Streams -s -d <file or directory>
3. Confirm that the Unblock button no longer appears. Restart IIS and the CranSoft Service and confirm functionality.