Issue when adding Fault Contract Type using configuration tool (EL 5.0 EHAB)

Topics: Exception Handling Application Block
May 2, 2011 at 1:44 PM

Hello,

I've created a class to use with exceptionshielding:

using System;
using System.Runtime.Serialization;

namespace BrkManService.Faults
{
	[DataContract]
	public class BrkManFaultContract
	{
		[DataMember]
		public Guid FaultID { get; set; }

		[DataMember]
		public string FaultMessage { get; set; }
	}
}

when setting up my EHAB in the configuration tool I got a warning when I add this class as Fault Contract Type.

<add type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.WCF.FaultContractExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.WCF, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
exceptionMessageResourceType="" exceptionMessage="An error occured. Please contact your administrator.&#xD;&#xA;ErrorId: {handlingInstanceID}"
faultContractType="BrkManService.Faults.BrkManFaultContract, BrkManService, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
name="Fault Contract Exception Handler">
<mappings>
    <add source="{Guid}" name="FaultId" />
    <add source="{}Message}" name="FaultMessage" />
</mappings>

Message: Unable to find type ...

Severity: Warning

Am I missing something here?

Thank you.

 


May 2, 2011 at 10:37 PM

Problem solved: there was no problem at all. Tried to run the code and all worked as expected.