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
And in
C:\FusionLog\NativeImage\InstallUtil.exe
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?
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
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?
User contributions licensed under CC BY-SA 3.0