You are currently offline, waiting for your internet to reconnect

Your browser is out-of-date

You need to update your browser to use the site.

Update to the latest version of Internet Explorer

Antivirus exclusions for Microsoft Team Foundation Server

Summary
This article provides information about the processes that may have to be excluded from antivirus scanning on computers that are running Team Foundation Server 2010, Team Foundation Server Proxy 2010, Team Foundation Server 2012, and Team Foundation Server Proxy 2012. It also provides links to Microsoft knowledge base articles that cover antivirus exclusions that may be defined on servers that are running deployments of Microsoft SQL Server and SharePoint Server that have been integrated with Team Foundation Server.
More information
For better performance of source control and other Team Foundation Server operations, we recommend adding the Internet Information Services (IIS) worker process (w3wp.exe) to the list of antivirus exclusions. Be aware that this is not a requirement for Team Foundation Server.

The w3wp.exe process is typically located at C:\Windows\System32\inetsrv\w3wp.exe. You can also locate this process by following these steps:
  1. Make a TFS web request such as by connecting to TFS through Team Explorer.
  2. On the Team Foundation Server application tier or the Team Foundation Server proxy machine, open Task Manager, and then click the Details tab.
  3. Find w3wp.exe in the list of items that are running.
  4. Right-click w3wp.exe, and then select Open file location.

For more information about SQL Server folder exclusions, click the following article numbers to view the article in the Microsoft Knowledge Base:
309422 How to choose antivirus software to run on computers that are running SQL Server
952167 Certain folders may have to be excluded from antivirus scanning when you use a file-level antivirus program in SharePoint

Team Foundation Server 2013

Add the %ProgramFiles%\Microsoft Team Foundation Server 12.0\Application Tier\Web Services\bin folder to your antivirus software’s directory exclusion list to avoid errors that may occur when the antivirus software locks files in this folder. These errors may include intermittent instances where the Team Foundation Server Application Pool crashes. The following list includes errors that you might encounter when this behavior occurs:
  • The following event is added to the system’s Application log:

    Event ID 5002
    Application pool 'Microsoft Team Foundation Server Application Pool' is being automatically disabled due to a series of failures in the process(es) serving that application pool.
  • The following event is added to the system’s Application log before the Team Foundation Server Application Pool crashes:

    TF400850: The request context was not disposed by the caller
    Exception Message: Cannot access a disposed object.
  • The following application domain reload event occurs:

    The application is being shut down for the following reason: BinDirChangeOrDirectoryRename
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.
Properties

Article ID: 2636507 - Last Review: 04/01/2015 18:56:00 - Revision: 3.0

  • Microsoft Visual Studio Team Foundation Server 2013
  • Microsoft Visual Studio Team Foundation Server 2012
  • Microsoft Visual Studio Team Foundation Server 2010
  • KB2636507
Feedback