I have created this class to configure the exception manager instance.
public static class EnterpriseLibraryBootStrapper
public static void Configure()
// Get Entlib config source (Current is in Web.EnterpriseLibrary.config)
IConfigurationSource source = ConfigurationSourceFactory.Create();
// Get factories from config
var policyFactory = new ExceptionPolicyFactory(source);
// Create Exception Manager Instance
ExceptionManager exManager = policyFactory.CreateManager();
I don't know, how to refer the exception manager instance?
Please find the code which was used in data access layer.
if (exceptionManager!= null)
exceptionManager.HandleException(ex, "Data Access Policy");
Here i am getting compile time error because created exception manager instance is not referred. How to refer the created exception manager instance in different classes?
I am not using unity block. Kindly note.
I am new Enterprise Library 6.0. Please help.