You are currently offline, waiting for your internet to reconnect

[SDP 3][f5d6e7a0-45ba-49be-ac74-5c56982a8a88] System.Net/WCF Diagnostics

The Support Diagnostic Package (SDP) for System.Net and WCF is used to configure System.Net and WCF tracing on the machine that is experiencing an issue with the System.Net or WCF technology. The SDP package will collect a System.Net/WCF trace of an application using the WCF or System.Net.HttpWebRequest or System.Net.Sockets.Socket class.

The SDP package will take care of enabling the WCF and System.Net tracing and disabling the tracing, but the trace files will need to be manually deleted. This KB article outlines the steps required to use System.Net/WCF tracing package and delete the trace files.
More information
Before System.Net/WCF SDP package enables the trace feature, it asks the .NET application type, configuration file and trace output location.
  1. Select .NET Application Type:
    Application Type
    If your application is a Web Application, please select "IIS Web Application". If your application is Visual Studio itself, such as TFS client, please select "Visual Studio". If the application is a service or .exe, please select "Your Own Application".

    "IIS Web Application" option will automatically detect the web.config file location to enable WCF or System.Net trace.
    Web Application

    Web Application Location

    "Visual Studio" option will automatically detect and find your Visual Studio version and configuration file location.
    Visual Studio

    "Your Own Application" option will ask you to select the application configuration file, such as web.config or application.exe.config.
    Your Own Application Configuration Location
  2. Select trace file type to be enabled. You can select System.Net Trace or WCF trace or both.
    Select Tracing

  3. Trace file output folder:
    Trace File Output Folder
  4. System.Net trace option if you have System.Net trace enabled:
    System.Net Trace Option

    WCF trace option if you have WCF trace enabled:
    WCF Trace Option
  5. After you click "Next" button, the trace(s) will be enabled and the SDP package will be paused waiting for you to reproduce issue.
    If your application is an ASP.NET application, there is no need to restart IIS Application Pool. If your application is a service or .exe application, you will need to manually restart application to make new configuration file take effect.
    Asking Issue Repro
  6. After you reproduce the issue, please click "Next" button and package will automatically disable the tracing feature. If your application is an ASP.NET application, there is no need to restart IIS Application Pool. If your application is a service or .exe application, you will need to manually restart application to make new configuration file take effect.
    Trace Disabled
About System.Net trace:
How to: Configure Network Tracing

About WCF trace:
Recommended Settings for Tracing and Message Logging

About System.Net/WCF SDP package:
1. SDP package will create a backup of the selected configuration file and the existing configuration content will be combined with the new <system.diagnostic> section. The backup configuration file name will have the original file name appended with the current date, time and ".sdp.backup". For example: CSharpHTTP.exe.config will be backed up as CSharpHTTP.exe.config.6-21-12-17-19.sdp.backup or web.config will be backed up as web.config.6-21-12-17-19.sdp.backup

To manually disable the System.Net trace feature, you just need to copy the configuration backup file back to the original configuration file name.

2. The SDP package will create a new .NET application configuration file if it does not exist. For this scenario, you can simply remove the .NET application configuration file to disable the System.Net trace feature.

3. Once you restore the original configuration file or remove the trace enabled configuration file, you will have to restart the application process for the changes to be effective. 

4. The trace file will be located in the trace file folder, which you select in SDP dialog box GUI. You will need to manually delete the trace file after disabling the tracing feature. SDP package will not delete the trace file for you as the file may still be referenced by the .NET application process.


KB 2598970 - Information about the Microsoft Automated Troubleshooting Services and Support Diagnostic Platform

KB 973559 - Frequently asked questions about the Microsoft Support Diagnostic Tool (MSDT) for Windows 7

WCF System.Net HttpWebRequest
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Article ID: 2952803 - Last Review: 04/10/2014 05:52:00 - Revision: 2.0

Microsoft .NET Framework 2.0, Microsoft .NET Framework 3.0, Microsoft .NET Framework 3.5, Microsoft .NET Framework 4, Microsoft .NET Framework 4.5, Microsoft .NET Framework 4.5.1

  • KB2952803