Share via


A configuration file contains namespace information

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 

  • Application-tier server

  • Health check

The Best Practices Analyzer tool for Team Foundation Server checks for any namespace information in the Web.config file for each Web site and virtual directory for Team Foundation Server. An error appears if a Web.config file contains namespace information. The error message contains the directory path, the affected Web site, and the server name.

You add a namespace attribute to a Web.config file if you modify it by using the ASP.NET Configuration Settings dialog box that you access from the Internet Information Services (IIS) Manager. If a Web.config file contains namespace information, files and assemblies do not load correctly. Alerts might contain a blank subject line, or other event errors might indicate the problem. To resolve this issue, use a text or XML editor to remove the namespace attribute from the Web.config file.  

Required Permissions

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

To remove namespace information from a Web.config file

  1. Log on to the application-tier server for Team Foundation.

  2. Open Windows Explorer, and locate the directory that the error specifies.

  3. Open the Web.config file in Notepad or other text-based editor.

    Note

    Even if you are logged on with administrative credentials, you must open Notepad as an administrator to perform this function on a server that is running Windows Server 2008. To open Notepad as an administrator, click Start, right-click Command Prompt, and click Run as administrator. For more information, see the Microsoft Web site.

  4. Locate the following element:

    <configuration xmlns="https://schemas.microsoft.com/.NetConfiguration/v2.0">
    
  5. Remove the xmlns attribute so that the element reads:

    <configuration>
    
  6. Save and close the file.

  7. Stop and restart the Web services application for Team Foundation Server so that your changes will take effect.

    To restart an application in IIS 6.0:

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

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

    3. Right-click the name of the Web site (for example, Team Foundation Server), and click Stop.

    4. Right-click the name of the Web site, and click Start.

    To restart an application in IIS 7.0:

    1. Open the Start menu, point to Administrative Tools, right-click Internet Information Services (IIS) Manager, and then click Run as administrator.

    2. In the Connections pane, expand the local computer, and then expand Sites.

    3. Right-click the name of the Web site (for example, Team Foundation Server), point to Manage Web Site, and then click Restart.

See Also

Other Resources

Web Service Configuration Issues