Udostępnij za pośrednictwem


The name of the application pool is not set to the default value

The information in this article applies to:

  • Visual Studio 2005 Team Foundation Server

  • Visual Studio Team System 2008 Team Foundation Server

  • Windows Server 2003

  • Windows Server 2008 

  • SQL Server and SQL Server 2008

  • Application-tier server

  • Health check

The Best Practices Analyzer tool for Team Foundation Server checks the name that is assigned to the following application pools:

Visual Studio 2005 Team Foundation Server

Visual Studio Team System 2008 Team Foundation Server

ReportServer

ReportServer

Note

You manage ReportServer in Internet Information Services ( IIS ) for SQL Server 2005 but not for SQL Server 2008.

TFS AppPool

Microsoft Team Foundation Server Application Pool

TFS Proxy AppPool

Microsoft Team Foundation Server Proxy Application Pool

TFSWSS

DefaultAppPool

TFWSSADMIN

SharePoint Central Administration v3

An error appears if the assigned name does not match the default name. Although the name assignment does not affect typical server functions, it can cause problems if you upgrade or install service packs.

To resolve this issue, you must determine which of the following situations is the most likely cause and then correct it accordingly:

  • The Web site or virtual directory must be moved to its assigned application pool.

    For more information, see:

    • Changing the Application Pool That Is Assigned to a Web Site or Virtual Directory in IIS 6.0

    • Changing the Application Pool That Is Assigned to a Web Site or Virtual Directory in IIS 7.0

  • An application pool for Team Foundation must be restored to its default name.

    • To restore the name in IIS 6.0, you must restore the application pool and then move the Web site or virtual directories to the restored application pool. For more information, see Restoring an Application Pool in IIS 6.0.

    • To restore the name in IIS 7.0, you must move the Web site or virtual directories to a different application pool, rename the application pool, and then move the Web site or virtual directories to the renamed application pool. For more information, see Renaming an Application Pool in IIS 7.0.

  • An application pool for Team Foundation has been deleted and must be recreated. 

    • To recreate the pool in IIS 6.0, you must restore the application pool and then move the Web site or virtual directories to the restored application pool. For more information, see Restoring an Application Pool in IIS 6.0.

    • To recreate the pool in IIS 7.0, you must recreate the application pool and then move the Web site or virtual directories to the recreated application pool. For more information, see Recreating an Application Pool in IIS 7.0.

You use Internet Information Services (IIS) Manager on the application-tier server to perform these tasks.

Required Permissions

To perform this procedure, you must be a member of the Administrators security group on the application-tier server for Team Foundation.

Restoring an Application Pool in IIS 6.0

To restore an application pool to its default name in IIS 6.0

  1. Log on to the application-tier server.

  2. Click Start, point to Administrative Tools, and click Internet Information Services (IIS) Manager.

    Internet Information Services (IIS) Manager opens.

  3. In the tree pane, expand the local computer, and expand Application Pools.

  4. Right-click the application pool that you want to rename, click All Tasks, and then click Save Configuration to a File.

  5. In Name, type a name for the file to be saved, and click OK.

  6. Right-click the application pool that you want to rename, click New, and then click Application Pool (from file).

    The Import Configuration dialog box opens.

  7. In the File box, verify that the file that you just saved appears, and then click Read File.

    If the file does not appear, click Browse, locate the file that you saved, and then click Read File.

  8. In Select a configuration to import, click the application pool that is listed, and click OK.

  9. In the IIS Manager dialog box, click Create a new application pool.

  10. In Application Pool ID, type the default name of the application pool that you are renaming.

    Note

    You can find the default name in the error.

  11. Click OK.

Changing the Application Pool That Is Assigned to a Web Site or Virtual Directory in IIS 6.0

To change the application pool that is assigned to a Web site

  1. In the tree pane of IIS Manager, expand Web Sites.

  2. Right-click the Web site that runs under the application pool that you renamed, and then click Properties.

    The following table indicates the Web sites that belong to each application pool.

    Web site

    Application pool (Visual Studio 2005 Team Foundation Server)

    Application pool (Visual Studio Team System 2008 Team Foundation Server)

    Default Web Site

    TFSWSS

    DefaultAppPool

    SharePoint Central Administration v3

    TFWSSADMIN

    SharePoint Central Administration v3

    Team Foundation Server

    TFS AppPool

    Microsoft Team Foundation Server Application Pool

    Team Foundation Server Proxy

    TFS Proxy AppPool

    Microsoft Team Foundation Server Proxy Application Pool

  3. On the Home Directory tab, click the appropriate application pool for the Web site (as listed in the previous table), and then click OK.

To change the application pool that is assigned to a virtual directory

  1. In the tree pane of IIS Manager, expand the Web site that runs under the application pool that you renamed.

  2. Right-click a virtual directory that runs under the application pool that you renamed, and click Properties.

    The following table indicates the virtual directories that belong to each application pool.

    Application pool (Visual Studio 2005 Team Foundation Server)

    Application pool (Visual Studio Team System 2008 Team Foundation Server)

    Web site

    Virtual directories

    ReportServer

    ReportServer

    Default Web Site

    ReportsReportServer

    TFS AppPool

    Microsoft Team Foundation Server Application Pool

    Team Foundation Server

    Build

    Services

    VersionControl

    Warehouse

    WorkItemTracking

    TFS Proxy AppPool

    Microsoft Team Foundation Server Proxy Application Pool

    Team Foundation Server Proxy

    VersionControlProxy

  3. On the Virtual Directory tab, click the appropriate application pool (as listed in the previous table), and then click OK.

  4. Repeat the previous three steps for any remaining virtual directories that run under the application pool that you renamed.

Recreating an Application Pool in IIS 7.0

To recreate an application pool in IIS 7.0

  1. Log on to the application-tier server.

  2. Click Start, point to Administrative Tools, right-click Internet Information Services (IIS) Manager, and then click Run as administrator.

  3. In the Connections pane, expand the server node, and click Application Pools.

  4. On the Application Pools page, in the Actions pane, click Add Application Pool.

    The Add Application Pool dialog box opens.

    In the Name box, type the name of the application pool.

  5. In the .NET Framework version list, click .NET Framework v2.0.50727.

  6. In the Managed pipeline mode list, click Classic.

  7. Select the Start application pool immediately check box.

    By default, this check box is selected.

  8. Click OK.

Renaming an Application Pool in IIS 7.0

To rename an application pool in IIS 7.0

  1. Log on to the application-tier server.

  2. Click Start, point to Administrative Tools, right-click Internet Information Services (IIS) Manager, and then click Run as administrator.

    Internet Information Services (IIS) Manager opens.

  3. In the Connections pane, expand the server node, and click Application Pools.

  4. On the Application Pools page, click the application pool that you want to rename.

  5. Move all applications that are assigned to the pool to a different pool:

    1. In the Actions pane, under Edit Application Pool, click View Applications.

    2. On the Application Pools page, right-click each application in the list, and then click Change Application Pool.

    3. In the Select Application Pool dialog box, click a different application pool (for example, the DefaultAppPool).

    4. Repeat steps 5b and 5c until no more applications are listed for the application pool that you want to rename.

  6. On the Application Pools page, click the application pool that you want to rename.

  7. In the Actions pane, under Edit Application Pool, click Rename.

  8. Type the new name, and then click outside the box.

  9. Move all applications that should be under the renamed application pool. On the Application Pools page, click the application pool from step 5c.

    1. In the Actions pane, click View Applications.

    2. On the Application Pools page, right-click each application in the list, and then click Change Application Pool.

    3. In the Select Application Pool dialog box, click the application pool that you renamed in step 7.

    4. Repeat steps 7b and 7c until you have reassigned all applications that should be assigned to the application pool for Team Foundation.

  10. To verify that the assignments are correct, on the Application Pools page, click the renamed application pool, and then click View Applications.

    The following table indicates the Web sites and virtual directories that belong to each application pool.

    Application pool (Visual Studio Team System 2008 Team Foundation Server)

    Web site

    Virtual directories

    Microsoft Team Foundation Server Application Pool

    Team Foundation Server

    Build

    Services

    VersionControl

    Warehouse

    WorkItemTracking

    Microsoft Team Foundation Server Proxy Application Pool

    Team Foundation Server Proxy

    VersionControlProxy

    ReportServer

    Note

    You manage ReportServer in IIS for SQL Server 2005 but not for SQL Server 2008.

    Default Web Site

    ReportsReportServer

Changing the Application Pool That Is Assigned to a Web Site or Virtual Directory in IIS 7.0

To change the application pool assigned to a Web site or virtual directory in IIS 7.0

  1. Log on to the application-tier server.

  2. Click Start, point to Administrative Tools, right-click Internet Information Services (IIS) Manager, and then click Run as administrator.

    Internet Information Services (IIS) Manager opens.

  3. In the Connections pane, expand the server node, and then expand Sites.

  4. Perform one of the following steps:

    • Click the Web site that you want to reassign.

    • Expand the Web site, and click the virtual directory that you want to reassign.

  5. In the Actions pane, click Basic Settings.

  6. In the Edit Application dialog box, click Select next to Application pool.

  7. In the Select Application Pool dialog box, click the appropriate application pool for the selected application, and click OK twice.

  8. To verify whether the assignments are correct, perform step 9 of Renaming an Application Pool in IIS 7.0.

See Also

Tasks

An application pool is not configured correctly

Other Resources

Issues That Relate to .NET and Internet Information Services