【发布时间】:2020-08-19 22:13:17
【问题描述】:
我有一个 WPF 应用程序,可以在 Windows 10 x 64 开发机器和基本的 Windows 10 x64 VM 上正常运行。当放在客户机器上时会出现异常提示:
DispatcherUnhandledEvent: Could not load file or assembly 'CLRWrapper.dll' or one of its dependencies. The specified module could not be found.
依赖项遍历显示以下依赖项:
-
VCRUNTIME140D.DLL
-
ucrtbased.dll
-
MSVCP140D.dll 一样失踪。将这些 DLL 中的任何一个放入 System32、SysWOW64 或应用程序的根文件夹中都会导致以下错误:
无法加载文件或程序集“CLRWrapper.dll”或其依赖项之一。不是有效的Win32应用程序。 (来自 HRESULT 的异常:0x800700C1)
为什么会导致此错误?在我将这些 DLL 放入 System32 和 SysWOW64 文件夹之前,该应用程序无法在 VM 中运行。
有人有什么想法吗?
TIA, 道格
【问题讨论】:
-
您确定您的应用程序正在作为 64 位应用程序运行吗?
标签: windows c#-4.0 windows-10-desktop