2013-01-03 59 views
1

我有一個VS 2008解決方案,其項目正在使用一些Microsoft.Practicies庫。加載程序集時出錯:'Microsoft.Practices.EnterpriseLibrary.Common'

所有組件的**版本:4.1.x的

一切都建立很好,但是當我運行它,我得到以下運行時錯誤:

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

有在建築物和運行正在進行的機器上沒有安裝企業庫的任何版本。

「複製本地」是和「特定版本」是所有組件

我在這裏做錯了什麼?

相關:Could not load file or assemblyForce Visual Studio References

回答

1

微軟實行庫是緊密耦合的,有些組件是interdependant。確保您已添加所需的所有庫,以及任何其他庫依賴項

相關問題