window7 wpf程序打不开问题排查及处理

部署到客户服务器后,现场反馈打不开软件

1.查看事件查看器报错

Description: A .NET application failed. Application: DataCollectionClient.exe Path: C:\Users\Administrator\Desktop\***.exe Message: The application to execute does not exist: 'C:\Users\Administrator\Desktop\***.dll'.

后面查看桌面程序,发现不是快捷方式,是exe,但是目前打包exe是带支持dll的,找到程序包所在实际目录,重新启动,仍未打开 ,再次查看事件查看器

2.事件查看器报错

Description: A .NET application failed. Application: DataCollectionClient.exe Path: C:\Users\Administrator\Desktop\mes\DataCollectionClient_202505211742\DataCollectionClient.exe Message: Failed to load the dll from C:\\Program Files\\dotnet\\host\\fxr\\6.0.36\\hostfxr.dll, HRESULT: 0x80070057 The library hostfxr.dll was found, but loading it from C:\Program Files\dotnet\host\fxr\6.0.36\hostfxr.dll failed - Installing .NET prerequisites might help resolve this problem. https://go.microsoft.com/fwlink/?linkid=798306

根据事件查看器报错,打开链接,找到我windows7对应环境及安装包,安装后重启

3.注意事项

在我排查前,电脑已安装对应 net环境,所以安装其他补丁后成功,未安装环境的注意需先安装对应net环境

相关推荐
宝桥南山2 小时前
Visual Studio - 记录一个Visual Studio 2026(Insiders)的更新问题
windows·microsoft·微软·.net·.netcore·visual studio
Jeff-Tsai3 小时前
Day 30:三段开发深度与框架全图
.net·架构设计·erp·definition-driven
JosieBook7 小时前
【鸿蒙开源】把 Windows 任务栏上的流量表搬到鸿蒙 PC:TrafficMonitor 1.86 的 C++ 内核移植实践
c++·windows·harmonyos
Jeff-Tsai16 小时前
Day 29:定义、框架与应用代码各负责哪一段
.net·架构设计·erp·definition-driven
Vex2une16 小时前
把 Windows 装进 U 盘随身携带:Windows To Go 现状与 WinToUSB 制作完全指南
windows·vhdx·windows to go·wintousb·便携windows·系统带进u盘·随身系统
2395730491 天前
从 GUI 彻底转向 CLI:我用 .NET + Avalonia + NativeAOT 打造了 Agent 终端托管工具 Octopus
开源·.net·agent·avalonia·ai coding
无奈笑天下2 天前
Wine适配Windows程序常见故障标准处理流程
linux·运维·服务器·windows
广东程序猿小展2 天前
PotPlayer 播放 4K 视频卡顿怎么办(硬解与渲染设置)
windows·工具·软件
光泽雨2 天前
控件Password附加属性
wpf