2009-09-03 68 views
4

我有安裝了Visual Studio 2005 SP1的Windows 7計算機。使用這個,我構建了一個應用程序,該應用程序在運行時加載了使用VS2005 SP1編譯但在Windows XP上運行的DLL。這會失敗,並出現以下錯誤:Side-by-side程序集,Windows 7和Visual Studio 2005

"...\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機器上變得不可用?

回答

2

問題已解決。問題在於Windows 7機器沒有安裝在構建DLL的Windows XP機器上的KB971090更新。爲了能夠安裝更新,我必須明確告訴Windows Update我想要接收非Windows更新。

相關問題