Connecting Tech Pros Worldwide Forums | Help | Site Map

[BUG] in IIS ? webshared directory problem !

Lloyd Dupont
Guest
 
Posts: n/a
#1: Nov 18 '05
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 ?

--
ihookdb
Get your data mobile
http://www.ihookdb.com



Martin Dechev
Guest
 
Posts: n/a
#2: Nov 18 '05

re: [BUG] in IIS ? webshared directory problem !


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
"Lloyd Dupont" <net.galador@ld> wrote in message
news:#WgwuVpIEHA.2144@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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 ?
>
> --
> ihookdb
> Get your data mobile
> http://www.ihookdb.com
>
>
>[/color]


Martin Dechev
Guest
 
Posts: n/a
#3: Nov 18 '05

re: [BUG] in IIS ? webshared directory problem !


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
"Lloyd Dupont" <net.galador@ld> wrote in message
news:#WgwuVpIEHA.2144@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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 ?
>
> --
> ihookdb
> Get your data mobile
> http://www.ihookdb.com
>
>
>[/color]


Lloyd Dupont
Guest
 
Posts: n/a
#4: Nov 18 '05

re: [BUG] in IIS ? webshared directory problem !


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

--
ihookdb
Get your data mobile
http://www.ihookdb.com


"Martin Dechev" <detcheff_@hotmail.com> wrote in message
news:uF3CaytIEHA.2556@TK2MSFTNGP12.phx.gbl...[color=blue]
> 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[/color]
directly[color=blue]
> 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[/color]
removal[color=blue]
> 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[/color]
syntax.[color=blue]
> Try:
>
> cscript.exe adsutil.vbs APPDELETE W3SVC/1/Counter
>
> The number 1 goes for the identifier of the web site. You can see the[/color]
exact[color=blue]
> 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[/color]
be[color=blue]
> able to remove it.
>
> Hope this helps
> Martin
> "Lloyd Dupont" <net.galador@ld> wrote in message
> news:#WgwuVpIEHA.2144@TK2MSFTNGP12.phx.gbl...[color=green]
> > 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,[/color][/color]
*Mistake*)[color=blue][color=green]
> > I tryed to webshared my new Counter directory on D: with the name[/color][/color]
Counter[color=blue][color=green]
> > 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[/color][/color]
to[color=blue][color=green]
> > be found and doesn't show up in the IIS administration panel.
> >
> > what could I do ?
> >
> > --
> > ihookdb
> > Get your data mobile
> > http://www.ihookdb.com
> >
> >
> >[/color]
>
>[/color]


Greg
Guest
 
Posts: n/a
#5: Nov 18 '05

re: [BUG] in IIS ? webshared directory problem !


Lloyd

I have the same problem. How did you fix it

Greg
program worker
Guest
 
Posts: n/a
#6: Nov 18 '05

re: [BUG] in IIS ? webshared directory problem !


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
:)


"Lloyd Dupont" <net.galador@ld> wrote in message news:<O5PtSW0IEHA.2376@TK2MSFTNGP12.phx.gbl>...[color=blue]
> 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
>
> --
> ihookdb
> Get your data mobile
> http://www.ihookdb.com
>
>
> "Martin Dechev" <detcheff_@hotmail.com> wrote in message
> news:uF3CaytIEHA.2556@TK2MSFTNGP12.phx.gbl...[color=green]
> > 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[/color]
> directly[color=green]
> > 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[/color]
> removal[color=green]
> > 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[/color]
> syntax.[color=green]
> > Try:
> >
> > cscript.exe adsutil.vbs APPDELETE W3SVC/1/Counter
> >
> > The number 1 goes for the identifier of the web site. You can see the[/color]
> exact[color=green]
> > 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[/color]
> be[color=green]
> > able to remove it.
> >
> > Hope this helps
> > Martin
> > "Lloyd Dupont" <net.galador@ld> wrote in message
> > news:#WgwuVpIEHA.2144@TK2MSFTNGP12.phx.gbl...[color=darkred]
> > > 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,[/color][/color]
> *Mistake*)[color=green][color=darkred]
> > > I tryed to webshared my new Counter directory on D: with the name[/color][/color]
> Counter[color=green][color=darkred]
> > > 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[/color][/color]
> to[color=green][color=darkred]
> > > be found and doesn't show up in the IIS administration panel.
> > >
> > > what could I do ?
> > >
> > > --
> > > ihookdb
> > > Get your data mobile
> > > http://www.ihookdb.com
> > >
> > >
> > >[/color]
> >
> >[/color][/color]
Closed Thread


Similar ASP.NET bytes