473,387 Members | 1,572 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,387 software developers and data experts.

How to start the Default WebSite of my IIS

ad
HI,
How can I start the default web site of my IIS with C#.
Aug 19 '06 #1
5 2888
Not sure what you mean by "start". I assume you want to open the default
website in the default browser: Process.Start ("http://localhost");
"ad" <fl****@wfes.tcc.edu.twwrote in message
news:uD****************@TK2MSFTNGP06.phx.gbl...
HI,
How can I start the default web site of my IIS with C#.
Aug 19 '06 #2
Siva M wrote:
Not sure what you mean by "start". I assume you want to open the default
website in the default browser: Process.Start ("http://localhost");
"ad" <fl****@wfes.tcc.edu.twwrote in message
news:uD****************@TK2MSFTNGP06.phx.gbl...
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?

--
Hope this helps,
Tom Spink

Google first, ask later.
Aug 19 '06 #3
Use shell command "net start"

chanmm

"ad" <fl****@wfes.tcc.edu.twwrote in message
news:uD****************@TK2MSFTNGP06.phx.gbl...
HI,
How can I start the default web site of my IIS with C#.

Aug 19 '06 #4
ad
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?

--
Hope this helps,
Tom Spink

Aug 20 '06 #5
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.
"ad" <fl****@wfes.tcc.edu.twwrote in message
news:uD****************@TK2MSFTNGP06.phx.gbl...
| HI,
| How can I start the default web site of my IIS with C#.
|
|
Aug 20 '06 #6

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

Similar topics

9
by: Matt Calhoon | last post by:
Hi there, I have specified a aspnet user account to run all .net sites. This account needs access to start a .BAT File (in my global.asax on session start the app needs to execute this bat...
31
by: Prabhat | last post by:
Hi All, The "Session_OnStart" event doesnot fire if the website has .htm file as the startup document. If I change the extension of the default document from ..htm to .asp then I can see the...
2
by: js | last post by:
I am using Visual Studio 2003. An IIS is installed on a separate box with the Remote Debugger server component from VS2003. Initially, I created a new blank project in VS2003 under the IIS's...
2
by: David | last post by:
SUMMARY: If you don't want to read all of this, what I'm looking for more or less is ideas on how to implement websites using ASP.NET that have a templated look and feel and many pages that make...
4
by: VB Programmer | last post by:
When I set intro.aspx as the "start page" for my ASP.NET project it works perfectly in Visual Studio.net. When I use IE and open up the website in localhost (http://localhost/MySite/) it uses...
4
by: Nobody | last post by:
Hi, I'm using ASP.NET w/ Visual Studio 2005 and the .net development server... how do I set the default start up page? right now when I go to http://localhost/WebSite I get a directory listing....
4
by: =?Utf-8?B?Tm9yZW1hYw==?= | last post by:
Here is what I am trying to get to: I have a console exe that grabs information from the network and writes to an XML file on the website that web pages then render information from. The console...
3
by: kneidels | last post by:
Hey folks on XPP here. I have always had IIs started by default, but suddenly now i see my default (and only) website is off. i get this message when trying to start it - running...
3
by: moondaddy | last post by:
What's the preferred (best) way to start a website project in VS 2005? I know of 2 ways and each creates a site differently and has different behavior. Open VS 2005 1) from the start page...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.