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环境

相关推荐
用户298698530145 小时前
.NET 文档自动化:Spire.Doc 设置奇偶页页眉/页脚的最佳实践
后端·c#·.net
赵榕1 天前
ClaimsPrincipal序列化为Json的正确姿势
.net
阿白的白日梦1 天前
winget基础管理---更新/修改源为国内源
windows
追逐时光者2 天前
一款使用 C# 编写专为 Windows 11 打造的文件资源管理器增强工具!
后端·.net
Scout-leaf4 天前
WPF新手村教程(三)—— 路由事件
c#·wpf
用户298698530144 天前
程序员效率工具:Spire.Doc如何助你一键搞定Word表格排版
后端·c#·.net
牧马人win4 天前
SmartDapper.Repository
.net
埃博拉酱5 天前
VS Code Remote SSH 连接 Windows 服务器卡在"下载 VS Code 服务器":prcdn DNS 解析失败的诊断与 BITS 断点续传
windows·ssh·visual studio code