Microsoft KB Archive/231326

= Err Msg: The Document Is in Use by Another Application =

Article ID: 231326

Article Last Modified on 6/23/2005

-

APPLIES TO


 * Microsoft Internet Information Server 4.0

-



This article was previously published under Q231326



We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:

http://www.microsoft.com/technet/security/prodtech/IIS.mspx



SYMPTOMS
When you open an HTM file using WordPad and make a change, and then open Internet Explorer and type in the Web site and path to the HTM file, the following error message occurs when you attempt to save the changes in WordPad:

The Document your_page.htm is in use by another application and cannot be accessed.



CAUSE
Internet Information Server (IIS) opens HTM files to read them and deliver the content to Web clients. When WordPad opens a document, it blocks both read and write permissions on the file by setting the Deny write and Deny read flags. Because IIS has the file open for read, the WordPad request fails. If an application attempts to open the file with only the Deny write flag, the system will return the file without an error.

Reviewing network trace information reveals that the IRP making the open call uses a Deny write Deny read. IIS respects system file locking if you open a file with Deny read Deny Write attributes. IIS will gracefully respect this and return an appropriate message.



WORKAROUND
Use another editor to make the necessary changes. Notepad or Visual InterDev are two of the alternative editors that Microsoft offers.

Keywords: kbprb KB231326

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.