C# – Could not load file or assembly Microsoft.Practices.EnterpriseLibrary.Configuration

asp.netcvisual studio 2012

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.

Best Answer

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