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

相关推荐
网硕互联的小客服36 分钟前
Apache 如何支持SHTML(SSI)的配置方法
运维·服务器·网络·windows·php
etcix1 小时前
implement copy file content to clipboard on Windows
windows·stm32·单片机
许泽宇的技术分享1 小时前
Windows MCP.Net:基于.NET的Windows桌面自动化MCP服务器深度解析
windows·自动化·.net
非凡ghost2 小时前
AMS PhotoMaster:全方位提升你的照片编辑体验
windows·学习·信息可视化·软件需求
mortimer4 小时前
一次与“顽固”外部程序的艰难交锋:subprocess 调用exe踩坑实录
windows·python·ai编程
gameatp6 小时前
从 Windows 到 Linux 服务器的全自动部署教程(免密登录 + 压缩 + 上传 + 启动)
linux·服务器·windows
穷人小水滴6 小时前
在 windows 运行 flatpak 应用 (WSL)
linux·windows·ubuntu
百锦再10 小时前
.NET 的 WebApi 项目必要可配置项都有哪些?
java·开发语言·c#·.net·core·net
hqwest21 小时前
C#WPF实战出真汁06--【系统设置】--餐桌类型设置
c#·.net·wpf·布局·分页·命令·viewmodel
Vae_Mars1 天前
WPF中使用InputBindings进行快捷键绑定
wpf