Microsoft KB Archive/917300

= Error message when you use the Stsadm.exe command-line tool to add a Web Part package in Windows SharePoint Services: &quot;The configuration database could not be updated&quot; =

Article ID: 917300

Article Last Modified on 5/8/2006

-

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 :\ .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:  Remove the host header name. To do this, follow these steps:  Start Internet Information Services (IIS) Manager. Expand, and then expand Web Sites. Right-click the Web site that you want to configure, and then click Properties. For example, right-click Default Web Site. Click the Web Site tab, and then click Advanced. 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.</li> In the Add/Edit Web Site Identification dialog box, remove the host header name in the Host Header value box.</li> Make sure that the Host Header value box is blank, and then click OK three times.</li></ol> </li> 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 .cab

</li> Specify the host header name that you want. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> 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.</li> Click the Web Site tab, and then click Advanced.</li> Under Multiple identities for this Web site, click the identity that you want to configure, and then click Edit.</li> In the Add/Edit Web Site Identification dialog box, specify the host header name that you want in the Host Header value box.</li> Click OK three times.</li></ol> </li> 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 :\ .cab -globalinstall -force

</li></ol>

<div class="moreinformation_section">

MORE INFORMATION
For more information about the Stsadm.exe command-line tool, see the following topics in the &quot;Reference&quot; chapter of the Windows SharePoint Services Administrator's Guide:
 * &quot;Command-Line Operations&quot;
 * &quot;Command-Line Parameters&quot;
 * &quot;Command-Line Properties&quot;

To obtain the Windows SharePoint Services Administrator's Guide, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?FamilyID=a637eff6-8224-4b19-a6a4-3e33fa13d230&displaylang=en

Additional query words: deploy wp wss webpart cab

Keywords: kberrmsg kbtshoot kbbug kbnofix kbexpertiseinter KB917300

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.