06.27.08

WCF ServiceDebug – includeExceptionDetailInFaults

Posted in WCF at 7:55 am by Miguel

“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.

Rating 3.00 out of 5
[?]

Leave a Comment

Please copy the string yYjQkA to the field below: