Fusion logs show no error after "Could not load file or assembly"

2

I have a Windows service app that installs beautfully on my localhost (Win8 64bit) and my test VM (WinServer2016). And we have installed it on various other OS's including Win 7 64bit. But when I try to install in a client's desktop (also a Win7 64bit) it fails with this very unhelpful error:

Exception occurred while initializing the installation:

System.IO.FileLoadException: could not load file or assembly [file] or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0X80131515).

Thanks to this thread:

How to enable assembly bind failure logging (Fusion) in .NET

I figured out how to get Fusion Logs from the process (from the highest ranked answer... adding values to registry). And I really thought I was going to get to the bottom of why this install was failing. But, that doesn't seem to be the case. After trying the install again (and it failed again), I checked the logs.

This is what I have:

C:\FusionLog\Default\InstallUtil.exe

enter image description here

And in

C:\FusionLog\NativeImage\InstallUtil.exe

enter image description here

I have opened every single one of the files, and I've searched in NotePad++ for failed and fail... nothing.

Every. Single. File. starts with The operation was successful.

(deep sigh) I have been working on this for hours, and I'm no closer to a solution than when I started. What I am doing wrong?

c#
.net
windows
windows-services
fusion
asked on Stack Overflow Apr 12, 2018 by Casey Crookston • edited Jun 20, 2020 by Community

2 Answers

1

You can try to use process monitor and get a more detailed log of what´s happening and maybe find the file that is failing (remember to filter out other processes): https://docs.microsoft.com/en-us/sysinternals/downloads/procmon

answered on Stack Overflow Apr 12, 2018 by Ximo
1

It might be that it's not the install process which fails - it could also be that the installer itself fails to start. If you've downloaded the installer to your client's computer from online, it could be that Windows is blocking the executable. Have you tried unblocking it?

answered on Stack Overflow Apr 12, 2018 by cbr

User contributions licensed under CC BY-SA 3.0