-
Windows 2000
-
IIS 5.0
-
c# application
I have a website under IIS. It is identified in MetaEdit as 10, and also its logfile is placed in the W3SVC10 directory.
Yet when I try to access it with this code (which works for other websites on the same machine),
ServiceController oSC;
oSC = new ServiceController("W3SVC/10");
oSC.Start();
This exception is thrown:
System.InvalidOperationException: Service W3SVC/10 was not found on computer '.'. ---> System.ComponentModel.Win32Exception: The specified service does not exist as an installed service