gpt4 book ai didi

c# - 融合日志在 "Could not load file or assembly"之后没有显示错误

转载 作者:可可西里 更新时间:2023-11-01 11:44:19 25 4
gpt4 key购买 nike

我有一个 Windows 服务应用程序,它可以完美地安装在我的本地主机(Win8 64 位)和我的测试虚拟机 (WinServer2016) 上。我们已经将它安装在各种其他操作系统上,包括 Win 7 64 位。但是当我尝试在客户端的桌面(也是 Win7 64 位)中安装时,它失败了,并出现了这个非常无用的错误:

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).

感谢这个线程:

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

我想出了如何从流程中获取 Fusion Logs(从排名最高的答案...向注册表添加值)。而且我真的以为我会弄清楚安装失败的原因。但是,情况似乎并非如此。再次尝试安装(再次失败)后,我检查了日志。

这是我的:

C:\FusionLog\Default\InstallUtil.exe

enter image description here

C:\FusionLog\NativeImage\InstallUtil.exe

enter image description here

我已经打开了每一个文件,并且我在 NotePad++ 中搜索了failedfail...什么都没有。

每一个。单例的。文件。以 The operation was successful 开头。

(深深地叹了口气)我已经为此工作了几个小时,与开始时相比,我离解决方案的距离并不近。我做错了什么?

最佳答案

可能不是安装过程失败 - 也可能是安装程序本身无法启动。如果您已将安装程序从网上下载到您客户的计算机上,则可能是 Windows 阻止了该可执行文件。你试过了吗unblocking it

关于c# - 融合日志在 "Could not load file or assembly"之后没有显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49803755/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com