I have an application that I want to install on 2 different servers. During the installation, I call a DLL (dotNet Installer Class Action) which is deployed during the previous stages of the installation. This works on target server #1. But for a reason I still cannot explain, the action to execute the DLL fails on target server #2. As far as I know, the 2 target servers should be "identical" in their configurations. Some google search results suggest that the DLL may be "blocked" as if it was downloaded from the internet. I checked, this is not the case.
The error I am getting is the following:
And when the action is run, here is the verbose log output:System.IO.FileLoadException: Could not load file or assembly 'file://\\MyServer2\installers\MyProject\Installer.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515).
Do you have any idea what could cause this issue?MSI (s) (B8:48) [13:25:19:391]: Executing op: ActionStart(Name=NetInstallerClass,,)
MSI (s) (B8:48) [13:25:19:392]: Executing op: CustomActionSchedule(Action=NetInstallerClass,ActionType=3073,Source=BinaryData,Target=LaunchDotNetCustomAction,CustomActionData=/LogFile= /ReqVersion=4.0.30319 /InstallType=notransaction /Action=Install /MyParameter1="Value1" "\\MyServer2\installers\MyProject1\Installer.dll" "C:\Windows\TEMP\NetInstallerClass_Config.xml")
MSI (s) (B8:F4) [13:25:19:395]: Invoking remote custom action. DLL: C:\Windows\Installer\MSICEC9.tmp, Entrypoint: LaunchDotNetCustomAction
MSI (s) (B8!50) [13:25:19:480]:
MSI (s) (B8:F4) [13:25:19:484]: Leaked MSIHANDLE (724) of type 790531 for thread 90704
MSI (s) (B8:F4) [13:25:19:484]: Note: 1: 2769 2: NetInstallerClass 3: 1
Error 1001. Error 1001. Exception occurred while initializing the installation:
System.IO.FileLoadException: Could not load file or assembly 'file://\\MyServer2\installers\MyProject\Installer.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515).
Info 2769. Custom Action NetInstallerClass did not close 1 MSIHANDLEs.
CustomAction NetInstallerClass returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (B8:48) [13:25:19:491]: User policy value 'DisableRollback' is 0
MSI (s) (B8:48) [13:25:19:491]: Machine policy value 'DisableRollback' is 0
Action ended 13:25:19: InstallExecute. Return value 3.