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

相关推荐
A_nanda1 天前
c#WPF开发常见问题
开发语言·c#·wpf
唐青枫1 天前
别只会解析参数:C#.NET Spectre.Console.Cli 命令行工具实战详解
c#·.net
戒了,最后一次1 天前
Windows 安装 FFmpeg 完整教程(附环境变量配置 + 常用命令示例)
windows·ffmpeg
liulilittle1 天前
DeepSeek Harness 自定义模型提供商配置
前端·javascript·人工智能·windows·llm·deepseek·harness
fruge1 天前
Windows部署MiGPT GUI:小爱音箱接入大模型、TTS与自定义人设
windows
源码学社1 天前
DeerFlow Windows 本地运行教程(uv)
windows·uv·沙箱·deerflow·超级智能体·deerflow安装
Sombra_Olivia1 天前
复现Windows Server服务RPC请求缓冲区溢出漏洞(MS08067)
网络·windows·安全·web安全·网络安全·渗透测试·vulhub
-天道酬勤-1 天前
查看Windows电脑开机时间
windows·电脑
该用户可能存在1 天前
【Win11优化】StartAllBack实战:解决任务栏合并、右键折叠等痛点
windows·性能优化·win11·windows 11·startallback·任务栏·开始菜单
特立独行的猫a1 天前
Windows安装Rust环境 Clang替代GCC MinGW环境LLVM工具链(详细教程)
开发语言·windows·rust·mingw·环境搭建·llvm