473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

[BUG] in IIS ? webshared directory problem !

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

Nov 18 '05 #1
2 2230
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:#W**************@TK2MSFTNGP12.phx.gbl...
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

Nov 18 '05 #2
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" <de*******@hotmail.com> wrote in message
news:uF**************@TK2MSFTNGP12.phx.gbl...
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:#W**************@TK2MSFTNGP12.phx.gbl...
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


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Russell E. Owen | last post by:
I stumbled across a really strange bug involving directories on linux. os.path.exists(path) can return 0 even after os.path.mkdir(path) succeeds (well after; this isn't a timing issue). For...
4
by: Frederico Caldeira Knabben | last post by:
Hello, I'm having a problem when trying to use the Directory.CreateDirectory() method. It throws a DirectoryNotFoundException exception. I'll try to illustrate it: Suppose you have the...
1
by: Koen | last post by:
Hi all, I created a little database to manage my e-books. The program will synchronize a table with the contents of a directory. Works great. Because I keep additional info (like keywords) to...
7
by: Sunny | last post by:
Hi all, I have found a possible bug in the Uri class constructor. When I make something like this: test = new Uri(@"http://www.test.com/dir1/page1.html"); test2 = new Uri(test,...
5
by: Lloyd Dupont | last post by:
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...
3
by: John Smith | last post by:
Here's the scenario... First let me say that the following events were catastrophic to my development workstation because my C:\WINNT directory had the EVERYONE user group assigned with full...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 378 open ( +3) / 3298 closed (+34) / 3676 total (+37) Bugs : 886 open (-24) / 5926 closed (+75) / 6812 total (+51) RFE : 224 open...
3
by: Dave | last post by:
Using ASP.Net 2.0 on Vista with IIS6, if I set a CacheDependency on a file into a Cache entry that I insert and then delete a subdirectory in the same directory that the file is located in then my...
28
by: Peter Oliphant | last post by:
I have written a program using MS VS VC++ 2005 Express, /cli pure. Upon compiling it it works fine in the GUI development environment. It also works fine as a Debug stand-alone. ut I had an odd...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.