Share via


Permissions to execute scripts on a virtual directory are not set

The information in this article applies to:

  • Visual Studio 2005 Team Foundation Server

  • Visual Studio Team System 2008 Team Foundation Server

  • Application-tier server

  • Health check

The Best Practices Analyzer tool for Team Foundation Server queries the metabase for Internet Information Services (IIS). This query determines the script execute permissions that are set for the virtual directories of the Web sites for Team Foundation.

An error appears if script execute permissions are not allowed for a virtual directory that requires these permissions. The error contains the name of the Web site and the virtual directory where the script execute permissions are not allowed.

To resolve this issue, set the execute permissions to allow script execution for all virtual directories for Team Foundation, including those that are associated with SharePoint Products and Technologies. You can ignore the execute permissions for SQL Server Reporting Services and all other permissions.

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 script execute permissions on a 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. In the tree pane, expand ComputerName (Local Computer), and then expand Web sites.

  4. Expand the name of the Web site that the error specifies.

  5. Right-click the name of the virtual directory that the error specifies, and then click Properties.

  6. On the Virtual Directory tab, select the Scripts only check box for Execute permissions, and then click Apply.

  7. Click OK to close the dialog box.

To change the script execute permissions on a virtual directory 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 ComputerName (Local Computer), and then expand Sites.

  4. Expand the name of the Web site that the error specifies.

  5. Click the name of the Web site or virtual directory that the error specifies.

  6. In the Web Site or Virtual DirectoryHome area, double-click Handler Mappings.

  7. In the Actions pane, click Edit Feature Permissions.

    The Edit Feature Permissions dialog box opens.

  8. Verify that the Read and Script check boxes are both selected.

  9. Click OK to close the dialog box.

See Also

Other Resources

Web Service Configuration Issues