Error opening config file

Topics: Enterprise Library Core
Nov 27, 2012 at 9:10 PM

(newbie question.)

I installed Enterprise Library 5.0

 I opened Enterprise Library Configuration tool .net 4.0 , and tried to open  a configuration file of an existing project

I see a error: could not load assembly Microsoft.Practices.enterpriseLibrary.common , version 5.0.505.0

I can see this dll under C:\Windows\Microsoft.NET\Framework\v4.0.30319\

Any ideas ? 

Thanks,Peter

 

Nov 28, 2012 at 7:12 AM

Enterprise Library assemblies shouldn't usually appear in C:\Windows\Microsoft.NET\Framework\v4.0.30319\ -- that is the location of the .NET Framework.

The configuration tool should be in the same directory as the Enterprise Library assemblies.  The default location for the install is C:\Program Files (x86)\Microsoft Enterprise Library 5.0\Bin (on a 64 bit system).  That is where all the Enterprise Library assemblies along with the configuration tool are located.  You should be able to launch the configuration tool from that location.

If you receive an error while opening a configuration file it usually means that the configuration file is not valid or that the assemblies referenced in the configuration file do not match the version used by the configuration tool.  E.g. the config file contains references to Enterprise Library 5.0.414.0 but the configuration tool is compiled against version 5.0.505.0.

--
Randy Levy
Enterprise Library support engineer
entlib.support@live.com 

Nov 28, 2012 at 4:18 PM
Edited Nov 28, 2012 at 4:49 PM

Randy,

You are exactly right. I installed 5.0.414.0 of entlib, and the existing code refers to 5.0.505.0

Any idea where I can get 5.0.505.0?  I found http://entlibcontrib.codeplex.com/releases/view/69407 , but it is not a full msi . I looked here http://www.microsoft.com/en-us/download/details.aspx?id=15104 , but it only shows the newer 414 version.

Thanks,Peter

 

Nov 28, 2012 at 6:21 PM

You can get version 5.0.505.0 from Nuget.  Or you you can download version 5.0.505.0 (AKA Microsoft Enterprise Library 5.0 Optional Update 1) from this link: http://www.microsoft.com/en-ca/download/details.aspx?id=6836.

--
Randy Levy
Enterprise Library support engineer
entlib.support@live.com