Microsoft KB Archive/894351

= You may receive the &quot;Setup cannot copy the file staxmem.dll&quot; error message when you try to install IIS on a computer that is running Windows XP Professional with SP2 =

Article ID: 894351

Article Last Modified on 10/3/2005

-

APPLIES TO


 * Microsoft Windows XP Professional
 * Microsoft Windows XP Service Pack 2

-





SYMPTOMS
When you try to install Microsoft Internet Information Services (IIS) on a computer that is running Microsoft Windows XP Professional with Service Pack 2 (SP2), you may receive one of the following error messages:

Copy error:

Setup cannot copy the file staxmem.dll. Please insert the &quot;Windows XP Professional Service Pack 2 CD&quot;.

Setup could not copy one or more files. The specific error code is 0x4b8

However, when you put the Windows XP Professional SP2 CD in your CD drive, Setup cannot find the Staxmem.dll file.



CAUSE
This issue may occur when one of the following conditions is true:
 * The Secedit.sdb database file is corrupted.
 * The Windows Components Wizard (Sysocmgr.exe) must install files in such a way that both the original Windows XP Professional CD and the Windows XP Professional SP2 CD must be available.



RESOLUTION
To resolve this issue, first run the Esentutl.exe tool to examine the integrity of the Secedit.sdb database. To do this, follow these steps:  Click Start, click Run, type cmd, and then click OK. At the command prompt, type the following command, and then press ENTER:

esentutl /g :\ \security\database\secedit.sdb

Note In this command,  is the hard disk drive where Windows XP Professional is installed, and   is the folder where Windows XP Professional is installed.

After the Esentutl.exe tool finishes, use one of the following methods to resolve the issue, depending on the message that the Esentutl.exe tool returns:  If the Esentutl.exe tool returns the following message, use Method 1 to resolve the issue:

This operation may find that this database is corrupt

 If the Esentutl.exe tool returns information that is similar to the following message, use Method 2 to resolve the issue:

Microsoft(R) Windows(R) Database Utilities

Version 5.2

Copyright (C) Microsoft Corporation. All Rights Reserved.

Initiating INTEGRITY mode...

Database: L:\WINDOWS\security\database\secedit.sdb

Temp. Database: TEMPINTEG2680.EDB

Checking database integrity.

Scanning Status (% complete)

0 10 20 30 40 50 60 70 80 90 100



...................................................

Integrity check successful.

Operation completed successfully in 0.841 seconds.



Note When you run the Esentutl.exe tool, your computer is returned to the original installation state where the Local Security Policy is not defined. You may have to start your computer in Safe Mode to rename files or to move files. To start your computer in Safe Mode, press the F8 key while Windows XP Professional is starting, type 1 to choose Safe Mode from the startup options, and then press ENTER.

Method 1: Repair or re-create the local Group Policy file
To repair the local Group Policy file, follow these steps:  Click Start, click Run, type cmd, and then click OK.</li> At the command prompt, type the following command, and then press ENTER:

esentutl /p :\ \security\database\secedit.sdb

Note In this command,  is the hard disk drive where Windows XP Professional is installed, and   is the folder where Windows XP Professional is installed.</li> Try to install IIS. If you cannot install IIS, complete the following steps to re-create the local Group Policy file.</li></ol>

To re-create the local Group Policy file, follow these steps:  Click Start, click Run, type explorer, and then click OK.</li> Locate and then open the :\  folder.</li> Create a new folder in the :\  folder, and then name the new folder OldSecurity. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Double-click the   folder.</li> On the File menu, point to New, and then click Folder.</li> Type OldSecurity, and then press ENTER.</li></ol> </li> Move all the files that have a .log file name extension from the :\ \Security folder to the  :\ \OldSecurity folder. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> Double-click the Security folder, and then hold down the CTRL key while you click each file that has a .log file name extension.</li> On the Edit menu, click Cut.</li> Locate and then click the OldSecurity folder.</li> On the Edit menu, click Paste.</li></ol> </li> <li>Find the Secedit.sdb file in the :\ \Security\Database folder, and then rename the Secedit.sdb file to Secedit.old. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Right-click Secedit.sdb, and then click Rename.</li> <li>Type Secedit.old, and then press ENTER.</li></ol> </li> <li>Click Start, click Run, type mmc, and then click OK.</li> <li>Add the Security Configuration and Analysis snap-in. To do this, follow these steps. <ol style="list-style-type: lower-alpha;"> <li>Click File, click Add/Remove Snap-in, click Security Configuration and Analysis in the Available Standalone Snap-ins list, and then click Add.</li> <li>In the Add Standalone Snap-in dialog box, click Close.</li> <li>In the Add/Remove Snap-in dialog box, click OK.</li></ol> </li> <li>Right-click Security and Configuration Analysis, and then click Open Database.</li> <li>Locate the :\ \Security\Database folder. In the File name box, type Secedit.sdb, and then click Open.

Note If you receive a message that states that access is denied, you can ignore the message.</li> <li>Right-click Security and Configuration Analysis, click Import Template, type setup security.inf, and then click Open.</li> <li>If you are prompted to restart your computer, restart your computer.</li> <li>Try to install IIS. If you cannot install IIS, complete the steps in Method 2.</li></ol>

Method 2: Integrate the Windows XP Professional SP2 installation files into the original version of the Windows XP Professional installation files
To integrate the Windows XP Professional SP2 installation files into the original version of the Windows XP Professional installation files, follow these steps: <ol> <li>Create a new folder that does not contain any files. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Start, click Run, type cmd, and then click OK.</li> <li>At the command prompt, type cd \, and then press ENTER.</li> <li>At the command prompt, type md winxp, and then press ENTER.</li> <li>At the command prompt, type cd winxp, and then press ENTER.</li> <li>At the command prompt, type md i386, and then press ENTER.</li></ol> </li> <li>Put the original version of the Windows XP Professional CD into your CD drive.</li> <li>At the command prompt, type the following command, and then press ENTER:

xcopy /E /I /V :\i386\*.* /s  :\winxp\i386

Note In this command,  is the CD drive where the original version of the Windows XP Professional CD is located.</li> <li>Remove the Windows XP Professional CD from the CD drive, and then put the Windows XP Professional SP2 CD in the CD drive.</li> <li>At the command prompt, type the following command, and then press ENTER:



Note In this command,  is the CD drive where the Windows XP Professional SP2 CD is located.</li> <li>At the command prompt, type the following command, and then press ENTER:

xpsp2 /integrate: :\winxp

</li> <li>Install IIS.</li> <li>When you are prompted to locate the Windows XP Professional installation files, type :\winxp, and then press ENTER.</li></ol>

Keywords: kbtshoot kbprb KB894351

-

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

© Microsoft Corporation. All rights reserved.