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 to start the Default WebSite of my IIS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ad - 19 Aug 2006 09:16 GMT
HI,
How can I start the default web site of my IIS with C#.
Siva M - 19 Aug 2006 09:38 GMT
Not sure what you mean by "start". I assume you want to open the default
website in the default browser: Process.Start ("http://localhost");

HI,
How can I start the default web site of my IIS with C#.
Tom Spink - 19 Aug 2006 10:37 GMT
> Not sure what you mean by "start". I assume you want to open the default
> website in the default browser: Process.Start ("http://localhost");
>
> HI,
> How can I start the default web site of my IIS with C#.

Siva: Possibly not, /IIRC/ websites in the IIS control panel can
be 'started' or 'stopped', meaning they're either being served, or they
aren't by the server.

Ad:  Is this what you mean?

Signature

Hope this helps,
Tom Spink

Google first, ask later.

ad - 20 Aug 2006 04:15 GMT
Yes, I mean that.
How can I start the default WebSite of my IIS with program?

> Siva: Possibly not, /IIRC/ websites in the IIS control panel can
> be 'started' or 'stopped', meaning they're either being served, or they
> aren't by the server.
>
> Ad:  Is this what you mean?
chanmm - 19 Aug 2006 14:25 GMT
Use shell command "net start"

chanmm

> HI,
> How can I start the default web site of my IIS with C#.
Willy Denoyette [MVP] - 20 Aug 2006 23:23 GMT
Two options:

1.Take a look at the DirectoryServices namespace and the IIS provider.
2.System.Management and WMI' class IISWebServer.

1. only works if the client has IIS installed (the clients needs the local
IIS provider to access the remote IIS server).
2. only works when connecting using an account that has remote access to
WMI's namespace MicrosoftIISV2.
WMI remote connections should have PacketPrivacy AuthenticationLevel (see
System.Management.ConnectionOptions).

Willy.

| HI,
| How can I start the default web site of my IIS with C#.

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.