Hi,
The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyImpl, ClientExceptionPolicy]) failed: Object reference not set to an instance of an object. (Strategy type ConfiguredObjectStrategy, index 2)
I have been facing this exception when i am implementing exception handling in windows application, in which i need to achieve - Write the exception message to Daatabase
Please find below lines of code
catch (Exception ex)
{
string exeptionMessage = ex.Message;
ClientException cex = ex as ClientException;
string errorId = default(string);
ExceptionPolicy.HandleException(ex, "ClientExceptionPolicy");
errorId = ex.Data["HandlingInstanceID"].ToString();
}
Exception is thowing in this perticula line
ExceptionPolicy.HandleException(ex, "ClientExceptionPolicy");
I have added all corresponding Dll.