Note that there are some explanatory texts on larger screens.

plurals
  1. PORegarding Catching FaultException<T> ex
    text
    copied!<p>I am using Enterprise application block on my application' server side to handle exceptions. </p> <p>I am able to successfully handle exception. I have created a custom service fault class to handle exceptions. </p> <p>Here are my web config enteries...</p> <pre><code>&lt;exceptionPolicies&gt; &lt;add name="WCF Exception Shielding"&gt; &lt;exceptionTypes&gt; &lt;add type="TEST.Infrastructure.ExceptionHandling.Exceptions.TESTBusinessException, Pluto.Infrastructure.ExceptionHandling, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" postHandlingAction="ThrowNewException" name="TESTBusinessException"&gt; &lt;exceptionHandlers&gt; &lt;add logCategory="BusinessLoggingCategory" eventId="501" severity="Error" title="Pluto Service Exception" formatterType="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.TextExceptionFormatter, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling" priority="0" useDefaultLogger="false" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="Logging Handler" /&gt; &lt;add type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.WCF.FaultContractExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.WCF, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="DefaultFaultContract Handler" faultContractType="TEST.Infrastructure.ExceptionHandling.Exceptions.TESTServiceException, Pluto.Infrastructure.ExceptionHandling" exceptionMessage="Pluto.Infrastructure.ExceptionHandling.Exceptions.TESTBusinessException {handlingInstanceID}"&gt; &lt;mappings&gt; &lt;add name="Id" source="{Guid}"/&gt; &lt;add name="MessageText" source="{Message}"/&gt; &lt;/mappings&gt; &lt;/add&gt; &lt;/exceptionHandlers&gt; &lt;/add&gt; </code></pre> <p>But on the client side when i try to catch this exception as </p> <pre><code> catch (FaultException&lt;TESTServiceException&gt; fex) { } </code></pre> <p>this exception is not caught. I am able to get the exception message on the client side which i have writen in app.config on server side.</p> <p>Can any one please help me figure out the problem.</p> <p>Thanks in advance</p> <p>Vikram</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload