Microsoft KB Archive/282775

= &quot;Error Writing Encrypted Data&quot; Error During IIS 5.0 Installation =

Article ID: 282775

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Internet Information Services 5.0

-



This article was previously published under Q282775



SYMPTOMS
During the installation or re-installation of Internet Information Services (IIS) 5.0, you may receive the following error message:

&quot;Error Writing Encrypted Data to the Web Services Configuration Database.&quot;

The installation halts, and you are prompted to Retry, Write unencrypted, or Write unencrypted all.



CAUSE
This error occurs because of incorrect (corrupt) information. If this is a new installation of IIS 5.0, the corrupt information is located in the following folder:

%Windir%\Documents and Settings\

If you are re-installing IIS, the corrupt information is located in the following folder:

%Windir%\Profiles\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys



RESOLUTION
To resolve this problem, follow these steps:  If you are still prompted to retry, delete all keys except the key that corresponds to the start of the latest installation from the MachineKeys folder. This key has a date/time stamp that corresponds to the time that you started your last installation.

-or-

If the installation is cancelled or did not complete successfully, use Windows Explorer to remove encryption from the %Windir%\Profiles\All Users\Application Data\Microsoft\Crypto\RSA\MachineKeys folder. To this, follow these steps:  Right-click the folder, and then click Properties. On the General tab, click Advanced. Clear the Encrypt contents to secure data check box, and then click OK. If this check box is NOT already selected, rename the MachineKeys folder to &quot;OldMachineKeys&quot;.  Log off, and then log back on as Local Administrator. The installation or reinstallation of IIS 5.0 should complete successfully.</li></ol>

<div class="references_section">