ServiceDebugElement.IncludeExceptionDetailInFaults Property

Definition

Gets or sets a value that specifies whether to include managed exception information in the detail of SOAP faults returned to the client for debugging purposes.

public:
 property bool IncludeExceptionDetailInFaults { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("includeExceptionDetailInFaults", DefaultValue=false)]
public bool IncludeExceptionDetailInFaults { get; set; }
[<System.Configuration.ConfigurationProperty("includeExceptionDetailInFaults", DefaultValue=false)>]
member this.IncludeExceptionDetailInFaults : bool with get, set
Public Property IncludeExceptionDetailInFaults As Boolean

Property Value

true if Windows Communication Foundation (WCF) returns managed exception information in the SOAP faults for client-side debugging purposes; otherwise, false. The default is false.

Attributes

Remarks

If you set the IncludeExceptionDetailInFaults property to true programmatically, you can enable the flow of managed exception information to the client for debugging purposes, as well as the publication of HTML information files for users browsing the service in Web browsers.

Caution

Returning managed exception information to services can be a security risk. This is because exception details expose information about the internal client implementation that could be used by unauthorized services.

Applies to