FaultContractExceptionHandler Mappings from Literals?

Topics: Exception Handling Application Block
Dec 16, 2010 at 11:58 AM

Hi all, just started using v5 with WCF and had wanted to build my own ServiceFault class with an enum to indicate the type of failure (maybe based on exception type in the config)

However I can't seem to get a literal mapping to work. Is there any way?

                  <add source="" name="FaultType" />
                  <add source="Message" name="FaultDescription" />
                  <add source="{guid}" name="HandlingInstanceId" />

Sso For FaultType source I have tried enclosing in quotes e.g. &quot;1&quot; and a few other things and in all cases the enum just defaults to 0.

I suppose I could have a ServiceFault class for each of the enum types, but I guess it is possibly a generally interesting thing to be able to assign literals in the configuration instead of only property mappings?

Dec 17, 2010 at 8:18 AM

Are there any exceptions raised during the exception handling? Also is there any chance this is something related to this thread http://entlib.codeplex.com/Thread/View.aspx?ThreadId=234212.

Gino Terrado
Global Technologies and Solutions
Avanade, Inc.