Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

INETSRV seems to be locked, but i can still create and delete file

472 views
Skip to first unread message

Rappresentante

unread,
Nov 26, 2007, 6:37:01 PM11/26/07
to
I have a big problem on my (IIS 6 - Win2k3 web edition) server.
IIS is unable to write on disk its configuration because files like
metaBase.xml and MBSchema.bin.00000000h are "locked".
I tried do to it myself, and I noticed that I'm able to create and delete
files, but not to rename them.

Even if I try with an empty .txt file, I have an error like "being used by
another program or person" just before I created it.

In the system32\ directory I have NO problem.

INETSRV subfolders are locked too.

So, I CANNOT REBOOT my server because if I do I lost my IIS configuration.
Actually there is no updated IIS configuration on my disk.

Can you help me?
Thanks,
RP

corey

unread,
Nov 26, 2007, 11:42:08 PM11/26/07
to
On Nov 26, 6:37 pm, Rappresentante

Did you try to export your IIS config? it seems that a reboot is a
must but I would try restarting the IIS services first.
There are not much in the IIS configs that you can loose. note them
down if the IIS export doesnt work.

David Wang

unread,
Nov 27, 2007, 5:31:10 AM11/27/07
to
On Nov 26, 3:37 pm, Rappresentante


Use a tool like Process Explorer / Process Monitor to determine what
process has a lock on the inetsrv directory and the metabase.xml file.
If it is not inetinfo.exe, then terminate those processes.

If you cannot get rid of the processes locking up IIS files (or you
find that IIS is the only one opening the file), then your only choice
is to export IIS configuration using the IIS Manager UI or commandline
tools. IIS6 configuration exists in two places -- on disk inside of
metabase.xml, and in-memory in inetinfo.exe when IIS Admin service is
started. Thus, if IIS Admin service is running but cannot write to
metabase.xml, then you still have IIS configuration in memory -- just
not synchronized to disk. Exporting IIS configuration is one way to
serialize the in-memory configuration to another XML file on disk.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//

Rappresentante

unread,
Nov 27, 2007, 9:54:02 AM11/27/07
to
> Did you try to export your IIS config? it seems that a reboot is a
> must but I would try restarting the IIS services first.

Yes, I did.
But I have the same error, either with "save configurazion to disk" and with
"backup". I cannot choose the target path, so I think IIS tries always in
inetSRV and MetaBack, that are "locked".

The only way is to use the command line and iisCnfg.vbs, writing to another
folder.
But I think that If I reboot now, I will have to reimport the content of
this file, because IIS will read first the old conf, losing changes.

> There are not much in the IIS configs that you can loose. note them
> down if the IIS export doesnt work.

I don't understand.
IIS configs file are full of settings... usernames, logs formats, header's
names... everyting about my web sites and ftp sites!
Writing them by hand is ... about impossibles!

Thanks
RP

Trevor Benedict

unread,
Nov 27, 2007, 1:21:29 PM11/27/07
to
If you need to find which app/process is locking the file
use http://www.dr-hoiby.com/WhoLockMe/

Regards,

Trevor Benedict
MCSD

"Rappresentante" <Rappres...@discussions.microsoft.com> wrote in message
news:18B090D9-05BF-471D...@microsoft.com...

Rappresentante

unread,
Nov 27, 2007, 2:13:04 PM11/27/07
to
> Use a tool like Process Explorer / Process Monitor to determine what
> process has a lock on the inetsrv directory and the metabase.xml file.
> If it is not inetinfo.exe, then terminate those processes.

Using handle.exe from sysinternals I have:


Handle v3.2
Copyright (C) 1997-2006 Mark Russinovich
Sysinternals - www.sysinternals.com

winlogon.exe pid: 700 1DC: C:\WINDOWS\system32\inetsrv
winlogon.exe pid: 700 29C: C:\WINDOWS\system32\inetsrv\iisadmpwd
inetinfo.exe pid: 1944 174:
C:\WINDOWS\system32\inetsrv\MBSchema.bin.00000000h
inetinfo.exe pid: 1944 1D4: C:\WINDOWS\system32\inetsrv
inetinfo.exe pid: 1944 224: C:\WINDOWS\system32\inetsrv\MBSchema.xml
w3wp.exe pid: 1272 10: C:\WINDOWS\system32\inetsrv
w3wp.exe pid: 1272 240: C:\WINDOWS\system32\inetsrv\asp.dll
w3wp.exe pid: 1272 248: C:\WINDOWS\system32\inetsrv\asp.dll
w3wp.exe pid: 1272 3B4: C:\WINDOWS\system32\inetsrv\asp.dll
w3wp.exe pid: 1272 5F8: C:\WINDOWS\system32\inetsrv

So I think all is normal here!

RP

0 new messages