Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / August 2006

Tip: Looking for answers? Try searching our database.

How can I start IIS in program

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ad - 19 Aug 2006 01:22 GMT
Hi,
How can I detect  if the IIS started or not?
If the IIS is stop, How can I start it  start IIS with C#?
Vadym Stetsyak - 19 Aug 2006 08:05 GMT
Hello, ad!

a> Hi,
a> How can I detect  if the IIS started or not?
a> If the IIS is stop, How can I start it  start IIS with C#?

To detect IIS status you can:
- search for inetinfo.exe process
- get status of IIS Admin Service windows service
- call issreset /status cmd

To do the restrart you can execute iisreset command.
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Vadym Stetsyak - 19 Aug 2006 08:10 GMT
Hello, Vadym!

VS> To detect IIS status you can:
VS> - search for inetinfo.exe process
VS> - get status of IIS Admin Service windows service
VS> - call issreset /status cmd

VS> To do the restrart you can execute iisreset command.

Forgot to mention that WMI can also be used for this
( http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=114 )

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
ad - 19 Aug 2006 09:15 GMT
Thanks very much

Another question,
How can I start the default web site of my IIS

"Vadym Stetsyak" <vadym_s@ukr.net>
???????:%23V4jn41wGHA.4160@TK2MSFTNGP06.phx.gbl...
> Hello, Vadym!
>
[quoted text clipped - 11 lines]
> Regards, Vadym Stetsyak
> www: http://vadmyst.blogspot.com
ad - 19 Aug 2006 09:50 GMT
Thanks,
But how to search for inetinfo.exe process?

"Vadym Stetsyak" <vadym_s@ukr.net>
???????:%23V4jn41wGHA.4160@TK2MSFTNGP06.phx.gbl...
> Hello, Vadym!
>
[quoted text clipped - 11 lines]
> Regards, Vadym Stetsyak
> www: http://vadmyst.blogspot.com
Willy Denoyette [MVP] - 21 Aug 2006 11:38 GMT
Please check your other post for an answer.
Note that you should stay away from inetinfo.exe, this is the admin service
for IIS, if you stop this service all services like W3SVC (and all the web
applications), FTP, NNTP, SMTP will stop (provided they are configured and
running).
Note also that on W2K3 (IIS6) and up, the web service (and FTP, SMTP ...)
are hosted in a shared service (svchost.exe), they are o longer hosted by
inetinfo.exe.

Willy.

| Thanks,
| But how to search for inetinfo.exe process?
[quoted text clipped - 16 lines]
| > Regards, Vadym Stetsyak
| > www: http://vadmyst.blogspot.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.