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.
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:
Make a TFS web request such as by connecting to TFS through Team Explorer.
On the Team Foundation Server application tier or the Team Foundation Server proxy machine, open Task Manager, and then click the Details tab.
Find w3wp.exe in the list of items that are running.
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