WCF ServiceDebug – includeExceptionDetailInFaults

“ServiceDebug” es el tag que debe añadirse a la conducta asociada a nuestro servicio de WCF para que publique la descripción del error a los clientes, en el caso de que se produzca algíºn problema a la hora de consumir un servicio.
<system.serviceModel>
  <services>
    <service name=”WCFPolimorfismo.MiServicio” behaviorConfiguration=”miConducta”>
      <endpoint address=”” binding=”basicHttpBinding” contract=”WCFPolimorfismo.IMiServicio”></endpoint>
    </service>
  </services>
  <behaviors>
    <serviceBehaviors>
      <behavior name=”miConducta”>
        <serviceMetadata httpGetEnabled=”true”/>
        <serviceDebug includeExceptionDetailInFaults=”true”/>
      </behavior>
    </serviceBehaviors>
  </behaviors>
</system.serviceModel> 
Saludos.
Miguel.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.