Share via


An incorrect version of the .NET Framework is detected

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

  • Health check

The Best Practices Analyzer tool for Team Foundation Server checks that all Web sites and virtual directories on the application-tier server are running under ASP.NET 2.0. An error appears if a different version of ASP.NET is running. The error contains the name of the Web site and the path of the virtual directory.

To resolve this issue, open Internet Information Services (IIS) Manager on the application-tier server, and change the ASP.NET version for the reported Web site and virtual directory.

Note

On computers that are running Windows Server 2008, the ASP.NET version is assigned to the application pool under which the application runs.

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 change the ASP.NET version for a Web site or virtual directory in IIS 6.0

  1. Log on to the application-tier server.

  2. Open the Start menu, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.

    Internet Information Services (IIS) Manager opens.

  3. To verify or change the ASP.NET version for a Web site:

    1. In the tree pane, expand the local computer, and expand Web Sites.

    2. Right-click the Web site (for example, Default Web Site), and click Properties.

    3. On the ASP.NET tab, click 2.0.50727 for the ASP.NET version.

    4. Click Apply, and then click OK.

  4. To verify or change the ASP.NET version for a virtual directory:

    1. In the tree pane, expand the Web site that contains the virtual directory.

    2. Right-click the virtual directory (for example, Build under Team Foundation Server), and click Properties.

    3. On the ASP.NET tab, click 2.0.50727 for the ASP.NET version.

    4. Click Apply, and then click OK.

To change the ASP.NET version for an application pool in IIS 7.0

  1. Log on to the application-tier server.

  2. Open the Start menu, 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 local computer, and click Application Pools.

  4. On the Application Pools page, verify that v2.0 appears under .NET Framework Version for all Team Foundation application pools. Also, verify that Classic appears under Managed Pipeline Mode.

    Note

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

  5. If the assignments are different from those indicated in step 4, perform the following steps:

    1. Click the application pool.

    2. In the Actions pane, click Basic Settings.

      The Edit Application dialog box opens.

    3. Under .NET FrameworkVersion, click .NET Framework v2.0.50727.

    4. Under Managed pipeline mode, Click Classic, and then click OK.

See Also

Other Resources

Issues That Relate to .NET and Internet Information Services