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

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


I've created a class to use with exceptionshielding:

using System;
using System.Runtime.Serialization;

namespace BrkManService.Faults
	public class BrkManFaultContract
		public Guid FaultID { get; set; }

		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=, Culture=neutral, PublicKeyToken=null"
name="Fault Contract Exception Handler">
    <add source="{Guid}" name="FaultId" />
    <add source="{}Message}" name="FaultMessage" />

Message: Unable to find type ...

Severity: Warning

Am I missing something here?

Thank you.


May 2, 2011 at 11:37 PM

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