How to start the Default WebSite of my IIS

S

Siva M

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#.
 
T

Tom Spink

Siva said:
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?
 
W

Willy Denoyette [MVP]

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#.
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top