Looking for version 5.0.505.0 of DLL Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll

Topics: Enterprise Library Core
Jul 19, 2012 at 1:52 PM

Hi,

I am implementing Transient Fault handling block into my Azure application. Also doing Exception Handling and Logging through Enterprise Library. Problem arising while doing both the task through configuration in web.config file. I am using following DLLs for implementing Transient Fault Handling:

DLL          Version

Microsoft.Practices.EnterpriseLibrary.Common.dll     5.0.505.0
Microsoft.Practices.Unity       2.1.505.0
Microsoft.Practices.Unity.Configuration      2.1.505.0
Microsoft.Practices.Unity.Interception      2.1.505.0
Microsoft.Practices.Unity.Interception.Configuration    2.1.505.0
Microsoft.Practices.EnterpriseLibrary.WindowsAzure.Configuration  5.0.1118.0
Microsoft.Practices.EnterpriseLibrary.WindowsAzure.TransientFaultHandling 5.0.1118.0
Microsoft.Practices.TransientFaultHandling.Core     5.0.1118.0


And For Exception Handling and Logging I am using following DLLs:

DLL          Version

Microsoft.Practices.EnterpriseLibrary.ExceptionHandling    5.0.505.0
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll  5.0.414.0

The entire configuration is generated through configuration console tool.

I am testing it locally. I am using EnterpriseLibrary.WindowsAzure.TransientFaultHandling -Version 5.0.1118.0  for Transient Fault Handling and  Microsoft Enterprise Library 5.0 DLL's for Exception Handling and its logging.
Both are working fine separately.

Problem arises when I do both things together through configuration settings in web.config file and following exception comes up:-

{"An error occurred creating the configuration section handler for exceptionHandling: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (E:\\T fault Handle\\eTax_NET\\COM.TCS.eTax.Web\\web.config line 14)"}

at line-

RetryManager retryManager = EnterpriseLibraryContainer.Current.GetInstance<RetryManager>();


This is all due to mismatch in dll versioning and their dependencies. So I am looking for version 5.0.505.0 of DLL Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll which I could not find. I hope this could resolve this issue.

Thanks.

 

 

Jul 19, 2012 at 4:20 PM

You can get the Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll via NuGet ((Enterprise Library 5.0 - Exception Handling Application Block Logging Handler).  You can search for entlib "exception handling block".

Or you can download Microsoft Enterprise Library 5.0 Optional Update 1 which contains the 505 version of the assembly.

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

Jul 20, 2012 at 1:41 PM

Thanks for the link Randy.

I got my desired DLL version from  Microsoft Enterprise Library 5.0 Optional Update 1 .