Sharing Violation with Server-side Includes

Last reviewed: November 19, 1997
Article ID: Q172047

The information in this article applies to:

  • Microsoft Internet Information Server version 3.0

SYMPTOMS

When you try to modify or replace a file that is being called as a server-side Include, you may get a sharing violation. You also may not be able to delete, move, rename, or change this file until the World Wide Web (WWW) service is stopped.

CAUSE

Generally all files published by the World Wide Web Publishing service are shared, and can be updated at any time with no problem, even on a busy server. The exception is with server side includes. The file called by the server-side Include tag is mapped into memory and is not shareable. This can prevent the file from being updated without stopping the WWW service.

Normally this is not a problem, but if the included file is used to display frequently changing information, then it would cause the WWW service to have to be stopped and started more often than normal.

WORKAROUND

If you have dynamically changing data, you should not use a server-side Include to display the information from a file.
Keywords          : iisgeneral kbother
Version           : WinNT:3.0
Platform          : winnt
Hardware          : ALPHA x86
Issue type        : kbprb
Solution Type     : kbworkaround


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


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.

Last reviewed: November 19, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.