我有一個在IIS7上運行的ASP.NET項目。我只是添加Microsoft.Practices.EnterpriseLibrary.Common.dll,Microsoft.Practices.EnterpriseLibrary.Data.dll,& Microsoft.Practices.EnterpriseLibrary.ObjectBuilder2.dll。ASP.NET - 未找到程序集
我收到此錯誤:
Error 2 Could not load file or assembly 'Microsoft_Practices_EnterpriseLibrary_Common' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
我研究這個問題,並發現這意味着該DLL沒有在正確的位置,但它是在我projectdirectory/bin文件夾。所以我不明白它應該被引用的地方。它沒有在我的Web.config中引用,但程序集標籤沒有在項目模板中生成。
我需要引用這些程序集嗎?如果是這樣,我在哪裏可以找到必要的屬性,即PublicToken等?
如果您嘗試將dll添加到項目中,請右鍵單擊solution-> add reference。如果您正在部署您的網站,請將該dll複製到./bin文件夾中。 –
可能的重複http://stackoverflow.com/questions/1110843/installing-microsoft-enterprise-libraries-and-databasefactory –