Once shared configuration is enabled, IIS server doesn't come up after network share failover

This article has been archived. It is offered "as is" and will no longer be updated.
Source: Microsoft Support
RAPID PUBLISHING
RAPID PUBLISHING ARTICLES PROVIDE INFORMATION DIRECTLY FROM WITHIN THE MICROSOFT SUPPORT ORGANIZATION. THE INFORMATION CONTAINED HEREIN IS CREATED IN RESPONSE TO EMERGING OR UNIQUE TOPICS, OR IS INTENDED SUPPLEMENT OTHER KNOWLEDGE BASE INFORMATION.
Symptom


When Microsoft Internet Information Services 7.0 (IIS) server is configured to work in shared configuration mode then configuration files are stored on a file share. This is the recommended configuration for setting up web farms. However, in case file share goes offline, the entire set up fails and web servers stop responding. Moreover, when the file share comes up again, the IIS server is not able to detect it and you receive the following error message:

 

HTTP Error 500.19 - internal server error

The requested page cannot be accessed because the related configuration data for the page is invalid.

We have to do an IISreset to start the web servers again after this.
Cause
Resolution


To resolve this issue set up a shared configuration with offline files (client side caching) enabled.  To do this, follow these steps:

 

1.       On the Web server, in Control Panel, open Offline Files.

 

2.       In the Offline Files dialog box, click Enable Offline Files. Do not restart the machine yet.

 

3.       Ensure that the cache is set to read only by running the following command:

REG ADD "HKLM\System\CurrentControlSet\Services\CSC\Parameters" /v ReadOnlyCache /t REG_DWORD /d 1 /f

 

4.       Reboot the Web server.

 

5.       Browse to the file share folder from Web server. Right click and select Always Available Offline.

 

6.       On the Web server, in Control Panel, open Offline Files, select Schedule option.

 

7.       Schedule Offline file sync after every 1 day or as per the requirement. This could be in minutes too.

 

Even without setting up any scheduler, the moment you change anything in applicationhost.config file, it is reflected on the Web server.
More Information


For more information visit the following Microsoft Web site:

http://learn.iis.net/page.aspx/212/offline-files-for-shared-configuration/

DISCLAIMER
MICROSOFT AND/OR ITS SUPPLIERS MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY, RELIABILITY OR ACCURACY OF THE INFORMATION CONTAINED IN THE DOCUMENTS AND RELATED GRAPHICS PUBLISHED ON THIS WEBSITE (THE “MATERIALS”) FOR ANY PURPOSE. THE MATERIALS MAY INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS AND MAY BE REVISED AT ANY TIME WITHOUT NOTICE.

TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, MICROSOFT AND/OR ITS SUPPLIERS DISCLAIM AND EXCLUDE ALL REPRESENTATIONS, WARRANTIES, AND CONDITIONS WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO REPRESENTATIONS, WARRANTIES, OR CONDITIONS OF TITLE, NON INFRINGEMENT, SATISFACTORY CONDITION OR QUALITY, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, WITH RESPECT TO THE MATERIALS.
Properties

Article ID: 968726 - Last Review: 01/16/2015 03:49:29 - Revision: 1.0

  • Microsoft Internet Information Services 7.0
  • kbnosurvey kbarchive kbnomt kbrapidpub KB968726
Feedback