Microsoft Knowledge Base Email Alertz

Discusses an issue where Event 51228 is logged in the System log, and changes are not saved to the Metabase.xml file when you change an Internet Information Services (IIS) 6.0 configuration. Provides steps to resolve this issue.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 902161 - Last Review: December 3, 2007 - Revision: 1.4

Event 51228 is logged in the System log, and changes are not saved to the Metabase.xml file after you make configuration changes in IIS 6

On This Page

SYMPTOMS

In Microsoft Internet Information Services 6.0 (IIS), after you make configuration changes by using Internet Information Services Manager or a programmatic interface, an error message that is similar to the following is logged in the System log:
Source: IIS Log
Type: Error
Category: Catalog
Event ID: 51228
Description: An error occurred while saving the metabase file. This can happen when the metabase XML file is in use by another program, or if the disk is full. Check for corresponding events in the event log for more details.(null)(null)(null)(null)
ErrorCode : 0x80070020
Additionally, the changes are not saved in the Metabase.xml file that is on the disk.

CAUSE

This issue occurs because one or more of the following conditions are true:
  • The configuration information cannot be saved because insufficient disk space exists.
  • A write lock exists on the Metabase.xml file.

RESOLUTION

To resolve this issue, use one or both of the following methods:

Method 1: Free disk space on the hard disk

If you cannot save the configuration information in the Metabase.xml file because of insufficient disk space, delete unnecessary files on the hard disk to free disk space.

Method 2: Exit the program that has a write lock on the Metabase.xml file

If a program that is running on the computer has a write lock on the Metabase.xml file, exit the program to release the Metabase.xml file.

Note You can use the Filemon.exe or Handle.exe programs to determine the program that has a write lock on the Metabase.xml file. To obtain Filemon.exe or Handler.exe, visit the following Web site:
http://technet.microsoft.com/en-us/sysinternals/cb56073f-62a3-4ed8-9dd6-40c84cb9e2f5.aspx (http://technet.microsoft.com/en-us/sysinternals/cb56073f-62a3-4ed8-9dd6-40c84cb9e2f5.aspx)

MORE INFORMATION

When you start IIS, the configuration settings are read from the Metabase.xml file and loaded into the IIS cache. The configuration information that is stored in active memory is also known as the in-memory metabase. When you use Internet Information Services Manager or a programmatic interface to modify the IIS configuration settings, the changes are made to the metabase that is in the IIS cache. The changes that are stored in the IIS cache are written to the Metabase.xml file on the hard disk according to the following rules:
  • After the first change is written to the metabase in the IIS cache, a timer is started. After two minutes, IIS starts to save the changes to the disk if you made 30 or fewer changes.
  • If you made more than 30 changes, the write-to-disk procedure is postponed, and the 2-minute timer is restarted.
  • Changes are written to the Metabase.xml file on the disk if you make 30 or fewer changes during the 2-minute timer cycle.
  • After the timer is restarted five times, the metabase configuration data in the IIS cache is written to the Metabase.xml file on the disk regardless of the number of changes that you made.
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.

Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.

APPLIES TO
  • Microsoft Internet Information Services 6.0
Keywords: 
kbtshoot kbprb kbevent KB902161
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate