A Web site resource could not be found

A Web site resource could not be found

The information in this article applies to:

  • Visual Studio Team Foundation Server 2010

  • Windows Server 2003 and Windows Server 2008 

  • SQL Server 2008

  • Application-tier server

  • Team Foundation Server Complete Health Check

  • Team Foundation Server Framework Health Check

The Best Practices Analyzer tool for Team Foundation Server verifies that a configuration file exists for each application-tier server for Team Foundation Server. An error appears if a web.config file is missing. The error contains the directory path, the affected Web site, and the server name.

This error typically occurs when a Web.config file is removed or renamed. To resolve this issue, you should verify that the file is missing from the Web Services directory or has been renamed. If the file has been moved, deleted, or renamed, you must restore or rename it.

To restore a missing web.config file on an application-tier server

  1. Log on to the application-tier server that is named in the error message, and openWindows Explorer.

  2. Open the directory that contains the web.config.template XML file.

    By default, this file is in Drive:\Program Files\Microsoft Team Foundation Server 2010\Application Tier\Web Services.

  3. Copy the file, rename the copy as web.config, and open it in a text editor.

    NoteNote

    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 then click Run as administrator. For more information, see the following page on the Microsoft Web site: User Account Control.

  4. Locate the appSettings section, and replace the tokens with values that are correct for your deployment:

    <appSettings>
       <add key="applicationDatabase" value="Data Source=@APPLICATION_DB_SERVER@;Initial Catalog=@APPLICATION_DATABASE@;Integrated Security=True;" />
       
       <!-- This is necessary to use the client for tracking work items from inside of the test management server -->
       <add key="WorkItemTrackingCacheRoot" value="@CACHEROOT@"/>
    

    Token

    Value

    @APPLICATION_DB_SERVER@

    The name and instance of the data-tier server.

    @APPLICATION_DATABASE@

    The name of the configuration database. By default, this value is Tfs_Configuration.

    @CACHEROOT@

    The directory path in which work items are stored temporarily. By default, this value is "C:\Windows\Temp\TFTemp".

  5. Replace the value of the applicationId element with the value for your deployment. You can locate this value by performing the following steps:

    1. Open SQL Server Management Studio.

    2. Click Database Engine, and specify the name and instance of the data-tier server.

    3. Expand Databases, and then right-click the configuration database.

      For example, right-click Tfs_Configuration database.

    4. Click Properties, and then click Extended Properties.

    5. Copy the value of TFS_INSTANCE, and paste it into the web.config file for the applicationID value, as the following example shows:

      <add key="applicationId" value="7050a715-69ed-48be-91ba-8d8a034b0042" />
      
  6. Save and close the file.

The tool logs the information that it gathers in the tree report under the Config File Contents node for each application-tier server. You can locate this node by expanding Team Foundation Server Complete Health Check, expanding Team Foundation Server, expanding Team Foundation Server Application Tiers, expanding Team Foundation Server AT, expanding Web Sites, expanding Team Foundation Server, and then expanding LM/W3Svc/8080/ROOT/tfs.

Community Additions

ADD
Show:
© 2016 Microsoft