Error message when you use the Stsadm.exe command-line tool to add a Web Part package in Windows SharePoint Services: "The configuration database could not be updated" (917300)



The information in this article applies to:

  • Microsoft Windows SharePoint Services

SYMPTOMS

You use the Stsadm.exe command-line tool to add a Web Part package to the Web Part gallery in Microsoft Windows SharePoint Services. For example, you use the following command line:

stsadm -o addwppack -filename Drive:\WebPartPackageName.cab -globalinstall -force

After the Web Part package is added, you specify a host header name for the virtual server on which Windows SharePoint Services is installed. You then use the Stsadm.exe command-line tool to add the Web Part package again by using the same command line that you used earlier. When you do this, you receive the following error message:
The configuration database could not be updated.

CAUSE

This issue occurs because the URL column in the InstalledWebPartPackages table of the configuration database is not updated with the correct URL.

WORKAROUND

To work around this issue, follow these steps:
  1. Remove the host header name. To do this, follow these steps:
    1. Start Internet Information Services (IIS) Manager.
    2. Expand ServerName, and then expand Web Sites.
    3. Right-click the Web site that you want to configure, and then click Properties. For example, right-click Default Web Site.
    4. Click the Web Site tab, and then click Advanced.
    5. Under Multiple identities for this Web site in the Advanced Web Site Identification dialog box, click the Web site identity that you want to configure, and then click Edit.
    6. In the Add/Edit Web Site Identification dialog box, remove the host header name in the Host Header value box.
    7. Make sure that the Host Header value box is blank, and then click OK three times.
  2. Remove the Web Part package by using the Stsadm.exe command-line tool. An example of a command line that you can use to remove the Web Part package is as follows:

    stsadm -o deletewppack -name WebPartPackageName.cab

  3. Specify the host header name that you want. To do this, follow these steps:
    1. In Internet Information Services (IIS) Manager, right-click the Web site that you want to configure, and then click Properties. For example, right-click Default Web Site.
    2. Click the Web Site tab, and then click Advanced.
    3. Under Multiple identities for this Web site, click the identity that you want to configure, and then click Edit.
    4. In the Add/Edit Web Site Identification dialog box, specify the host header name that you want in the Host Header value box.
    5. Click OK three times.
  4. Reinstall the Web Part package by using the Stsadm.exe command-line tool. An example of a command line that you can use to install the Web Part package is as follows:

    stsadm -o addwppack -filename Drive:\WebPartPackageName.cab -globalinstall -force

MORE INFORMATION

For more information about the Stsadm.exe command-line tool, see the following topics in the "Reference" chapter of the Windows SharePoint Services Administrator's Guide:
  • "Command-Line Operations"
  • "Command-Line Parameters"
  • "Command-Line Properties"
To obtain the Windows SharePoint Services Administrator's Guide, visit the following Microsoft Web site:

Modification Type:MajorLast Reviewed:5/8/2006
Keywords:kberrmsg kbnofix kbBug kbExpertiseInter kbtshoot KB917300 kbAudEndUser