How to: Verify or Correct the IIS Configuration for a Web Site or Virtual Directory
You might have problems when you try to access a Web site or Web service for Team Foundation if any of the following Internet Information Services (IIS) configurations are not set correctly:
.NET Framework version
Note
For computers running Windows Server 2008, the ASP.NET version is assigned to the application pool under which the application runs. For more information, see How to: Verify or Correct the IIS Configuration for an Application Pool.
Authentication method
Permissions to execute scripts on a virtual directory
Access restrictions that are based on IP address or domain
Note
By default, Team Foundation Server is configured to grant all computers access to all Web sites for Team Foundation. Before you remove any restrictions, you should investigate why the settings were changed. Many organizations deny access to match their infrastructure requirements or security policies.
Connection timeout
Local path
Default document for the Reports virtual directory
To verify or correct the IIS configuration of a Web site or virtual directory for Team Foundation, open the Internet Information Services (IIS) Manager, and verify the configuration assignments made to each Web site and virtual directory.
Web sites and virtual directories for Team Foundation have the following IIS tree structure:
Default Web Site (Windows Server 2003)
Reports
ReportServer
Note
You manage Reports and ReportServer in IIS for SQL Server 2005 but not for SQL Server 2008.
SharePoint Central Administration v3
Team Foundation Server
Build
Services
VersionControl
Warehouse
WorkItemTracking
Team Foundation Server Proxy
Required Permissions
To perform these procedures, you must be a member of the Administrators security group on the application-tier server for Team Foundation.
To verify or change the IIS configuration for a Web site or virtual directory in IIS 6.0
Log on to the application-tier server for Team Foundation.
Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
Internet Information Services (IIS) Manager opens.
In the tree pane, expand the local computer, and expand Web Sites.
Right-click a Web site for Team Foundation (for example, Default Web Site) or a virtual directory, and click Properties.
To verify the .NET Framework assignment, click the ASP.NET tab, and verify that 2.0.50727 for the ASP.NET version is selected. If it is not selected, select it, and then click Apply.
To verify or correct the authentication method assignment:
Click the Directory Security tab.
Under the Authentication and access control group, click Edit.
The Authentication Methods window appears.
Verify that the Enable anonymous access check box is cleared. If it is selected, clear it.
Verify that the Integrated Windows authentication check box is selected. If it is cleared, select it.
Click OK to confirm the changes and close the window.
To verify or correct the Execute permissions, do either of the following:
For a Web site, click the Home Directory tab. In the Execute permissions list, verify that the following options are clicked:
Scripts and Executables for the Default Web Site and SharePoint Central Administration v3
Scripts only for Team Foundation Server and Team Foundation Server Proxy
For a virtual directory, click the Virtual Directory tab, and verify that Scripts only is clicked.
Modify the selection as needed, and then click Apply.
To remove access restrictions that are based on IP address or domain name:
Click the Directory Security tab.
Under IP address and domain name restrictions, click Edit.
Verify that Granted Access is clicked.
Clear any unwanted restrictions.
Click OK, click Apply, and then click OK.
To verify or correct connection timeout assignments, click the Web Site tab, and verify that the Connection timeout assignments match or exceed the following default assignments:
120 seconds for the Default Web Site and SharePoint Central Administration v3
3600 seconds (1 hour) for Team Foundation Server and Team Foundation Server Proxy
Click OK to close the property sheet.
Repeat steps 4 through 10 for the remaining Web sites and virtual directories.
To verify or change the IIS configuration for a Web site or virtual directory in IIS 7.0
Log on to the application-tier server for Team Foundation.
On the Start menu, point to Administrative Tools, and click Internet Information Services (IIS) Manager.
Internet Information Services (IIS) Manager opens.
In the tree pane, expand the Sites node.
Click a Web site for Team Foundation (for example, Default Web Site) or a virtual directory.
To disable anonymous authentication:
In the Web site or Virtual directory Home area, double-click Authentication.
Right-click Anonymous Authentication, and then click Disable.
To correct permissions to execute scripts for a virtual directory:
In the VirtualDirectoryHome area, double-click Handler Mappings.
In the Actions pane, click Edit Feature Permissions.
The Edit Feature Permissions dialog box opens.
Verify that the following check boxes are selected based on the Web site that you clicked in step 4:
Web site
Permissions
Default Web Site
Read, Script, and Execute
SharePoint Central Administration v3
Read, Script, and Execute
Team Foundation Server
Read and Script
Click OK to close the dialog box.
To remove access restrictions that are based on IP address or domain name from a Web site:
In the WebSiteHome area, double-click IPV4 IP Address and Domain Restrictions.
Click an IP address or domain, and then click Remove. Click Yes to verify that you want to remove the restriction.
Repeat this step for each restriction that you want to remove.
To verify or correct connection timeout assignments:
In the Actions pane, under Manage Web Site, click Limits.
In the Limits dialog box, verify that the Connection timeout assignments match or exceed the following default assignments:
120 seconds for Description and SharePoint Central Administration v3
3600 seconds (1 hour) for Team Foundation Server and Team Foundation Server Proxy
Click OK to confirm the changes and close the window.
Repeat steps 4 through 8 for the remaining Web sites and virtual directories.
Verify or Change the Local Path
The behavior of each Web site differs when it is not configured to use a valid local path directory. Usually, the Web site does not appear correctly, or an HTTP standard response code appears. The following HTTP response codes frequently appear as a result of this error:
403 Forbidden error indicates that the request was a legal request, but the server is refusing to respond to it.
404 Not Found error indicates that the client was able to communicate with the server, but the server could not locate a required resource to service the request.
To resolve this issue, use Windows Explorer to verify that the corresponding directory for each Web site exists. The following table lists the default path for each Web site:
Web sites for Team Foundation |
Default directory (Local path) |
---|---|
Default Web Site |
..\Inetpub\wwwroot |
Reports |
..\Program Files\Microsoft SQL Server\MSSQL.n\Reporting Services\ReportManager
Note:
The number that is assigned to the MSSQL directory varies based on the SQL Server instance.
|
ReportServer |
..\Program Files\Microsoft SQL Server\MSSQL.n\Reporting Services\ReportServer
Note:
The number that is assigned to the MSSQL directory varies based on the SQL Server instance.
|
Team Foundation Server |
..\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services |
Build |
..\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services\Build |
Services |
..\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services\Services |
VersionControl |
..\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services\VersionControl |
Warehouse |
..\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services\Warehouse |
WorkItemTracking |
..\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services\WorkItemTracking |
SharePoint Central Administration (Windows SharePoint Services 2.0) |
..\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\template\admin\1033 |
SharePoint Central Administration V3 (Windows SharePoint Services 3.0 or Microsoft Office SharePoint Server 2007) |
For servers running Windows Server 2003: \Inetpub\wwwroot\wss\VirtualDirectories\nnnnn For servers running Windows Server 2008: ..\inetpub\wwwroot\wss\VirtualDirectories\nnnnn |
Then open IIS Manager on the application-tier server, and verify or change the local path assignment to the correct directory.
To verify or change the local path assignment of a Web site or virtual directory in IIS 6.0
Log on to the application-tier server for Team Foundation.
Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.
Internet Information Services (IIS) Manager opens.
In the tree pane, expand the local computer, and expand Web Sites.
To verify or change the local path for a Web site, perform the following steps:
Right-click the Web site (for example, Default Web Site), and click Properties.
On the Home Directory tab, verify that A directory located on this computer is selected.
Verify that the directory that is assigned to the Local path matches the default directory that is listed in the table earlier in this topic. If the directory does not match, change it to the default assignment.
Click Apply, and then click OK.
To verify or change the local path for a virtual directory, perform the following steps:
In the tree pane, expand the Web site that contains the virtual directory.
Right-click the virtual directory (for example, Build under Team Foundation Server), and click Properties.
On the Virtual Directory tab, verify that A directory located on this computer is selected.
Verify that the directory that is assigned to the Local path matches the default listed in the table earlier in this topic. If the directory does not match, change it to the default assignment.
Click Apply, and then click OK.
To verify or change the path assignment of a Web site or virtual directory in IIS 7.0
On the Start menu, point to Administrative Tools, right-click Internet Information Services (IIS) Manager, and then click Run as administrator.
In the Connections pane, expand the local computer, and expand Sites.
As needed, expand the Web site that contains the virtual directory.
Click the Web site or virtual directory, and then click Basic Settings in the Actions area.
The Edit Site dialog box appears.
In Physical path, verify that the path matches the default path as listed in the table earlier in this topic. If the paths do not match, click the Browse button (…), change the local path to the default path, and click OK.
Click OK.
See Also
Tasks
How to: Verify or Correct the IIS Configuration for an Application Pool
Resolving Problems Accessing Web Services