Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Can't delete files unless IIS is stopped.

Posted on 1999-06-29
Medium Priority
Last Modified: 2013-12-25
I have a cgi that generates some gif files for using on the HTML page.  I don't know why sometimes I couldn't delete these gif files.  NT pop-up a message says: "Can't not delete xxxxx.gif", there has been a sharing violation. The source or destination file may be in use."  

When this happens, the only way I can delete these gif files
is to stop the IIS.  So I guess IIS somehow keeps these files opened.  Can someone please tell me why the IIS is doing that?  Thanks a lot.

Question by:themisc
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 11

Accepted Solution

mouatts earned 400 total points
ID: 1834824
IIS holds the files open as part of its caching mechanism. The slowest part of opening and reading a file is the initial open. Thus if you keep it open then the imrpoves performance slightly.

In case you are going to ask can you turn this off. The answer is no. However you can normally overwrite or truncate the files without this happening so if the problem is in your CGI deleting before writing new versions try changing it to truncate instead.


Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question