We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

mstarnaud
Posts: 45
Joined: Mon Apr 15, 2013 9:44 pm

Deployed DLL is blocked?

Hi

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:
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).
And when the action is run, here is the verbose log output:
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.
Do you have any idea what could cause this issue?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Deployed DLL is blocked?

Hello,

There's a similar issue debated in the dotNetCustAct.dll Exception thread.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mstarnaud
Posts: 45
Joined: Mon Apr 15, 2013 9:44 pm

Re: Deployed DLL is blocked?

Hi

Thanks for the answer. But the error is not the same. I have "Operation is not supported" instead of "The system cannot find the file specified". In fact, I did previously have the file not found error, but I fixed a config value, so I can assure you it's not the same problem.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Deployed DLL is blocked?

This seems like a glitch in the custom action code. However, can you send us the project file via e-mail (support at advancedinstaller dot com) so we can see your settings? Maybe there's something obvious to consider.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mstarnaud
Posts: 45
Joined: Mon Apr 15, 2013 9:44 pm

Re: Deployed DLL is blocked?

Hi

I figured that it was probably not an Advanced Installer problem, but I posted it here anyway just in case. And in the meantime I finally found the solution. I had to open a command prompt and enter the following:
setx /M COMPLUS_LoadFromRemoteSources 1
which, from what I understand, creates a registry key (in the Machine section, because of the M flag) that will allow to load DLLs from "remote sources", which are network drives (\\MyServer\installers). I have no idea why I needed to do this on that particular server though.

You can read more here : http://connect.microsoft.com/VisualStud ... work-drive

Thank you for the help.

Return to “Common Problems”