"Script Execution Error: Error Executing INVOKE" Error Message After You Install IIS Lockdown Wizard

This article was previously published under Q319633
This article has been archived. It is offered "as is" and will no longer be updated.
If you try to use the fully qualified domain name (FQDN) to access a Document Library, you may receive the following error message:
Script Execution Error: Error executing INVOKE query.
This issue may occur if the following conditions are true:
  • You use the Server Template for SharePoint Portal Server to run the IIS Lockdown Wizard.
  • You accept all default settings and options for the SharePoint Portal Server Template.
When you install the IIS Lockdown Wizard with the default settings for SharePoint Portal Server Template, the Administration Web Site is removed. This changes the enumeration of sites, which causes the INVOKE error.

By default, IIS Web sites are numbered sequentially as they are created. For example:
  • W3SVC/1: typically the Default Web Site
  • W3SVC/2: typically the Administration Web Site
  • W3SVC/3: typically the first user-created Web site
When the administration Web site is removed, the sites are no longer numbered sequentially. For example:
  • W3SVC/1: the Default Web Site
  • W3SVC/3: the first user-created Web site
  • W3SVC/4: the second user-created Web site
To work around this issue, use either of the following methods.

Method 1: Reapply Adjusted IIS Lockdown Settings

Rerun the IIS Lockdown Wizard, which will re-apply all pre-installation settings such as access permissions and virtual directories (for example, IISAdmin). After this is successfully completed, rerun the IIS Lockdown Wizard one more time. To do this, follow these steps:
  1. Remove the current IIS Lockdown settings:
    1. Start the IIS Lockdown Wizard.
    2. On the This Server Was Already Configured page, click Next.
    3. Click Yes when you are prompted to continue.
    4. When the wizard is completed, click Next, and then click Finish.
  2. Apply the adjusted IIS Lockdown settings:
    1. Start the IIS Lockdown Wizard.
    2. On the Welcome to the Internet Information Services Lockdown Wizard page, click Next.
    3. On the End User License Agreement page, click I agree, and then click Next.
    4. On the Select Server Template page, select the SharePoint Portal Server template, and click to select the View template settings check box, and then click Next.
    5. On the Internet Services page, select the appropriate services to retain, and then click Next.
    6. On the Script Maps page, click to select all the check boxes except the Active Server Pages (.asp) check box, and then click Next.

      NOTE: Do not click to select the Active Server Pages (.asp) check box.
    7. On the Additional Security page, accept all of the defaults except the IISAdmin check box, and then click Next.

      NOTE: Do not click to select the IISAdmin check box. The IISAdmin check box should be cleared so that the virtual directory is maintained.
    8. On the URLScan page, choose to install the URLScan filter on the server, and then click Next.
    9. On the Ready to Apply Settings page, review the configuration information, and then click Next.
    10. When the wizard is completed, click Next, and then click Finish.
You can now use the FQDN to browse the document library of SharePoint Portal Server, and the IIS Lockdown Wizard maintains the highest level of security.

Method 2: Create a New Web Site (W3SVC/2)

Create another Web site in Internet Services Manager. This new Web Site will have the Web site number of the previously used Administration Web Site (for example, W3SVC/2).

If you do not want to host another Web site, you can create a placeholder Web site to allow the sequential numbering of Web sites in IIS. To do this, follow these steps:
  1. In the InetPub folder, create a directory named PLACEHOLDER.
  2. Start the Internet Services Manager:
    1. Click Start, point to Programs, and then click Administrative Tools.
    2. Click Internet Services Manager.
  3. Right-click your computer name, click New, and then click Web Site.
  4. When the Web site creation wizard appears, click Next.
  5. Type Placeholder for the site description, and then click Next.
  6. Type for the IP address and PLACEHOLDER for the host header, and then click Next.
  7. Type or locate the path for the Placeholder folder that you created earlier, and then click Next.
  8. Click to clear all Web access permissions, and then click Next.
  9. Click Finish to close the wizard.
  10. Right-click the newly-created Placeholder Web site in the Internet Services Manager, and then click Stop.
The new Web site is now created, but it cannot be browsed from Web clients.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
The Extranet Configuration tool (spsextranet) is a Resource Kit utility that is available from Microsoft. With the Extranet Configuration tool, SharePoint Portal Server administrators can access a SharePoint Portal workspace by using an FQDN. Administrators can also configure specific authentication and expose SharePoint Portal Serverworkspaces on an extranet Web site. This tool is available in the form of a script named Spsconfig.wsf. For more information about the utility and other SharePoint Portal Server Resource Kit tools, visit the following Microsoft Web sites: To secure your Microsoft Internet Information Services (IIS) programs such as SharePoint Portal Server in an Internet-configured environment, Microsoft highly recommends the use of the IIS Lockdown Wizard. For more information about the Lockdown Wizard, visit the following Microsoft Web site:
SPSshare point

Article ID: 319633 - Last Review: 10/24/2013 10:48:21 - Revision: 2.7

Microsoft SharePoint Portal Server 2001

  • kbnosurvey kbarchive kbbug KB319633