简体   繁体   中英

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:

Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Configuration, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The parameter is incorrect. (Exception from 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. 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.

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

update: its better to install using nuget package manager. run this command instead:

Install-Package EnterpriseLibrary.Common

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM