CallbackDebugBehavior Class
Enables service debugging for a callback object.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The CallbackDebugBehavior type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CallbackDebugBehavior | Initializes a new instance of the CallbackDebugBehavior class. |
| Name | Description | |
|---|---|---|
![]() | IncludeExceptionDetailInFaults | Gets or sets a value that controls whether client callback objects return managed exception information in SOAP faults back to the service. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEndpointBehavior::AddBindingParameters | Implements the IEndpointBehavior::AddBindingParameters method to support the behavior. |
![]() ![]() | IEndpointBehavior::ApplyClientBehavior | Implements the IEndpointBehavior::ApplyClientBehavior to support the behavior. |
![]() ![]() | IEndpointBehavior::ApplyDispatchBehavior | Implements the IEndpointBehavior::ApplyDispatchBehavior to support the behavior. |
![]() ![]() | IEndpointBehavior::Validate | Implements IEndpointBehavior::Validate to support the behavior. |
Set the IncludeExceptionDetailInFaults property to true from an application configuration file or programmatically to enable the flow of managed exception information in a client callback object back to the service for debugging purposes.
Caution |
|---|
Returning managed exception information to services can be a security risk because exception details expose information about the internal client implementation that could be used by unauthorized services. In addition, although the CallbackDebugBehavior properties can also be set programmatically, it can be easy to forget to disable IncludeExceptionDetailInFaults when deploying. |
Because of the security issues involved, it is strongly recommended that:
You use an application configuration file to set the value of the IncludeExceptionDetailInFaults property to true.
You only do so only in controlled debugging scenarios.
For more information about the security issues related to managed exception information, see Specifying and Handling Faults in Contracts and Services.
You can also set the values of this attribute by using the <callbackDebug> element in a client application configuration file.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
