Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common' or one of its dependencies

前端 未结 5 684
Happy的楠姐
Happy的楠姐 2020-12-17 14:26

I have searched google for this and could not find the solution to the problem.

My Website references DAL (custom dll) which references Enterprise Library Data Acces

5条回答
  •  一个人的身影
    2020-12-17 15:04

    This dll is likely to be in the GAC on developer machines as part of some windows application installation (my best guesses are Visual Studio or SSMS). That’s why we are likely to get warnings or errors on the build machine which we try our best to keep the GAC as clean as the production server’s.

    To download the file manually, you can go to https://servicelocation.codeplex.com/

    To fix the build warnings and errors, you simply need to run a NuGet command to install the CommonServiceLocation package. The package contains only this one dll file. Microsoft has released only 1 version (1.0.0.0) of this file since 2008. The file is fully compatible with all .NET versions and all Unity versions.

提交回复
热议问题