我有一台安装了 Visual Studio 2005 SP1 的 Windows 7 机器。使用它,我构建了一个应用程序,该应用程序在运行时加载一个 DLL,该 DLL 使用 VS2005 SP1 但在 Windows XP 上编译。这失败了,并出现以下错误:
"...\foo.dll": The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.
加载的 DLL 是针对调试 CRT 编译的。 this question的答案提示 vcredist_x86.exe 仅包含 CRT 的发布版本。我不确定这在这种情况下是否相关,因为我的机器和编译 DLL 的机器都安装了完整的 VS2005 SP1。
我是否应该尝试在 Windows 7 上重建 DLL(我不想这样做),这是否会导致 DLL 在 Windows XP 机器上无法使用?
最佳答案
问题解决了。问题是 Windows 7 机器没有 KB971090安装在构建 DLL 的 Windows XP 机器上的更新。我必须明确告诉 Windows 更新我想要接收非 Windows 更新才能安装更新。
关于visual-studio-2005 - 并行程序集、Windows 7 和 Visual Studio 2005,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1372604/