How to: Change the Trace Output Directory for Team Foundation Server Components

You can change the output directory for Team Foundation Server component trace files by editing the web.config file for that component.

Required Permissions

To perform this procedure, you must be a member of the Administrators group on the Team Foundation application-tier server. For more information, see Team Foundation Server Permissions.

Note

Do not use the ASP.NET tab of the Internet Information Services (IIS) Manager (inetmgr) to edit a Web.Config file. If you use this tab, an attribute is added to the <configuration> element of the Web.Config file. This attribute interferes with normal functioning.

To change the trace output directory for a Team Foundation Server component

  1. On the application-tier server for Team Foundation, locate the installation directory for the application tier.

  2. Open the Web Services subdirectory.

  3. Open the Web.Config file in a text or XML editor.

Note

Even if you are logged on with administrative credentials, you must start the text or XML editor as an administrator to perform this function on a computer that is running Windows Server 2008 or Windows Vista. To start the program as an administrator, click Start, click All Programs, right-click the program you want to use, and then click Run as administrator. For more information, see the Microsoft Web site.

  1. In the file, locate the <add key="traceDirectoryName"> element.

  2. Update that element by replacing the default location with the directory path where the trace log files are to be stored. For example, type the following string:

    <add key="traceDirectoryName" value="C:\TraceFilesFolder" />
    
  3. Save and close the file.

    You must close and restart the Web services application for Team Foundation before your changes will take effect.

See Also

Tasks

How to: Use Web Services to Enable and Configure Trace for Team Foundation Server Components

Concepts

Trace Settings for Team Foundation Server

Other Resources

Enabling Trace for Team Foundation Server Components