KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q282775: "Error Writing Encrypted Data" Error During IIS 5.0 Installation

Article: Q282775
Product(s): Internet Information Server
Version(s): 5.0
Operating System(s): 
Keyword(s): kbDSupport kbiis500 kbiis500prod2web kbProd2Web
Last Modified: 31-JUL-2001

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Internet Information Services version 5.0 
-------------------------------------------------------------------------------

SYMPTOMS
========

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

  "Error Writing Encrypted Data to the Web Services Configuration Database."

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:

1. 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:

  a. Right-click the folder, and then click Properties.

  b. On the General tab, click Advanced.

  c. 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 "OldMachineKeys".

2. Log off, and then log back on as Local Administrator. The installation or
  reinstallation of IIS 5.0 should complete successfully.

REFERENCES
==========

For additional information, click the article number below to view the article
in the Microsoft Knowledge Base:

  Q271865 PRB: Error Message '0x8009000F = Object Already Exists'

Additional query words: IIS 5 Metabase.bin metabase bin

======================================================================
Keywords          : kbDSupport kbiis500 kbiis500prod2web kbProd2Web 
Technology        : kbiisSearch kbiis500
Version           : :5.0
Issue type        : kbprb
Solution Type     : kbpending

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.