[BUG] in IIS ? webshared directory problem !

L

Lloyd Dupont

where is the webshared directory information ?

I create a Webapplication called Counter in C:\IntePub\wwwroot\Counter
the Counter directory was webshared under the name 'Counter'.
I copied the Counter directory on D:
Deleted the C:\....\Counter directory (without unsharing first, *Mistake*)
I tryed to webshared my new Counter directory on D: with the name Counter
and I have an error message:
---------------------------
Web Sharing
---------------------------
The alias "LM/W3SVC/1/Root/WebCounter" already exists. Please choose a
different alias.
---------------------------
OK
---------------------------

but I can't unshare the previous Counter directory because it's nowhere to
be found and doesn't show up in the IIS administration panel.

what could I do ?
 
M

Martin Dechev

Hi, Lloyd Dupont,

The problem is that the entry for the "Counter" web application is present
in the IIS metabase configuration. You should not edit the database directly
because in 99.9% of the cases the direct editing results in a corrupt
database. The only way I know for repairing corrupt metabase is IIS removal
and install (from Add/Remove Windows Components or in Windows 2003 Manage
Your Server->Add or remove a role).

You can try the script iisweb.vbs. For more details open the IIS Manager
Console, hit F1 and then go to IIS -> Programmatic Administration Guide ->
Using Command-Line Administration Scripts -> Managing Web Virtual
Directories -> Deleting Web Virtual Directories topic. I think the proper
syntax should be:

iisweb /delete "Default Web Site/Counter"

Another option is the script adsutil.vbs in Inetpub\AdminScripts\ folder.
The command should be APPDELETE, but I'm not 100% sure for the exact syntax.
Try:

cscript.exe adsutil.vbs APPDELETE W3SVC/1/Counter

The number 1 goes for the identifier of the web site. You can see the exact
corresponding identifier in the IIS Manager console. For non-server OS you
have only one web site - the default, so it should be 1.

If this doesn't work, try to add a folder named Counter to the
C:\IntePub\wwwroot\ directory and then restart the IISAdmin service. Then
you should see the Counter virtual application in the console and should be
able to remove it.

Hope this helps
Martin
 
L

Lloyd Dupont

Thanks Martin !
I tryed some experimental programming with the adsutil.vbs admin script and
I get rid of my problem !
That's great and good to know.

Cheers,
Lloyd
 
P

program worker

I encountered the same situation and below is the output message:-

C:\Inetpub\AdminScripts>cscript adsutil.vbs DELETE "W3SVC/1/ROOT/MCSDWebApps"
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

deleted path "W3SVC/1/ROOT/MCSDWebApps"

C:\Inetpub\AdminScripts>


Thanks
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,141
Latest member
BlissKeto
Top