简体   繁体   English

无法加载文件或程序集Microsoft.Practices.EnterpriseLibrary.Configuration

[英]Could not load file or assembly Microsoft.Practices.EnterpriseLibrary.Configuration

I am migrating an application from MS Visual Studio 2005 to MS Visual Studio 2012 and found this error message: 我将应用程序从MS Visual Studio 2005迁移到MS Visual Studio 2012,发现此错误消息:

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Configuration, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. 无法加载文件或程序集“ Microsoft.Practices.EnterpriseLibrary.Configuration,版本= 1.1.0.0,文化=中性,PublicKeyToken =空”或其依赖项之一。 The parameter is incorrect. 参数错误。 (Exception from HRESULT: 0x80070057 (E_INVALIDARG)) (来自HRESULT的异常:0x80070057(E_INVALIDARG))

I don't know exactly what to do. 我不知道该怎么办。 I have the dll on the project bin but still doesn't seems to work. 我在项目bin上有dll,但似乎仍然无法正常工作。 I tried to search in NuGet and Microsoft site maybe I need to install the latest version, maybe that's what's missing.. but still no luck, Unfortunately, I can't find the installer or any latest version. 我尝试在NuGet和Microsoft网站上进行搜索,也许我需要安装最新版本,也许是缺少的..但是还是没有运气,不幸的是,我找不到安装程序或任何最新版本。

Does anyone encounter this error? 有人遇到这个错误吗? Please help what to do. 请帮助该怎么办。 Thanks in advance. 提前致谢。

Yes, you will need to install the latest version of enterprise library for that, you can download it here: 是的,您需要为此安装最新版本的企业库,可以在这里下载:

http://www.microsoft.com/en-nz/download/details.aspx?id=38789 http://www.microsoft.com/en-nz/download/details.aspx?id=38789

update: its better to install using nuget package manager. 更新:最好使用nuget软件包管理器进行安装。 run this command instead: 运行以下命令:

Install-Package EnterpriseLibrary.Common

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 “无法加载文件或程序集'Microsoft.Practices.EnterpriseLibrary.Validation”异常 - “Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Validation” exception 无法加载文件或程序集'Microsoft.Practices.EnterpriseLibrary.Logging - Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Logging 无法加载文件或程序集'Microsoft.Practices.EnterpriseLibrary.Caching - Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Caching 无法在WCF中加载文件或程序集'Microsoft.Practices.EnterpriseLibrary.Common - Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common in WCF C#无法加载文件或程序集'Microsoft.Practices.EnterpriseLibrary.Logging - C# Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Logging 无法加载文件或程序集“Microsoft.Practices.EnterpriseLibrary.Common”或其依赖项之一 - Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common' or one of its dependencies 无法加载文件或程序集“ Microsoft.Practices.Unity.Configuration” - Could not load file or assembly 'Microsoft.Practices.Unity.Configuration' 无法加载文件或程序集“Microsoft.Practices.EnterpriseLibrary.Common,Version=6.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35”或 - Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or 无法加载文件或程序集 Microsoft.Practices.ServiceLocation,版本 = 1.3.0.0 - Could not load file or assembly Microsoft.Practices.ServiceLocation, Version=1.3.0.0 无法加载文件或程序集“Microsoft.Practices.Unity” - Could not load file or assembly 'Microsoft.Practices.Unity'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM