Sharing violation problem

  • Thread starter Thread starter JW
  • Start date Start date
J

JW

Background: I recently upgraded my server's motherboard and thus had to do a
repair install of Win2000 Server. Prior to this I have kept the OS up to the
latest Microsoft updates. I have installed all available updates from
Microsoft via the "Windows Update" site.
I also have SQL 2000 and IIS running on this machine. It is behind a
firewall and is running Computer Associates My-Etrust virus scanner - also
up to date.

Since the repair install, once I write a file via a server shared folder,
that file is no longer writable. I get a file sharing violation (File is in
use). Using handle.exe from www.sysinternals.com, it appears that the System
process keeps the file open. I have closed every window that could be
accessing the folder/file and re-run System and the file is still listed as
open under System. This only appears to happen after a write using the
share. After that the file is unavailable via share or via direct.

If I reboot the system I can again write the file. But not after I again
write it via share!

Not sure what to look at next.

Wes
 
JW,

We have this problem too. When we delete at least one file or one folder
inside of a parent-folder or when we delete the last file or the last folder
of a parent-folder so when we try to delete the parent folder a message
appears: "Error Deleting File or Folder. There has been a sharing violation.
The source or destination file may be in use".

I made a research through Newsgroups around the Internet and I found that
explorer.exe is locking that folder. People outhere tell us to restart
Windows and delete the folder, after logon. As an workaround to prevent a
restart, I found a great free utility called WhoLockMe
(http://www.dr-hoiby.com/WhoLockMe/) for Win2K. WhoLockMe is a little
extension for your Microsoft Explorer. It allow you to list all the process
locking your selected file. So I started to use it to unlock any folder
handled by explorer.exe, just killing explorer.exe process.

Another way to delete the locked folder is setup Windows Explorer to open
the folder's windows in separate proccess (Windows Explorer > Tools > Folder
Options > View Tab > Advanced Configuration > Start the folder's windows in
.....). So, we close all Windows Explorer windows, open a new one and delete
the locked folder.

You can also use the free, small and amazing utility Advanced Proccess
Explorer from Sysinternals through the link
http://www.sysinternals.com/ntw2k/freeware/procexp.shtml

In both ways, we did not need to restart the computer.

Toni Fontenele
Architect, Casaflex Ideas and Projects Ltd.
 
Back
Top