Monday, 27 January 2014

NetTier Exception Error

ExceptionPolicyImpl has multiple constructors of length 2
Goto service layer >DomainUtil.cs 

Change
public static bool HandleException(Exception e, string policyName)
{
 try
 {
  return ExceptionPolicy.HandleException(e, policyName);
 }
 catch (System.Configuration.ConfigurationErrorsException)
 {
  return true;
 }
}
To this:
public static bool HandleException(Exception e, string policyName)
{
 try
 {
  Exception ex;
  return ExceptionPolicy.HandleException(e, policyName, out ex);
 }
 catch (System.Configuration.ConfigurationErrorsException)
 {
  return true;
 }
}

No comments:

Post a Comment