473,549 Members | 2,346 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

IIS Web site information

Hi All,

Is it possible to retrieve the web site information running on the local
box? For example, I want to know the names of all web sites, the virtual
directory information and physical path that the web sites are located. I
have the local admin permission and would like to retrieve these info in C#,
either in a Windows form app or ASP.NET app.

Thanks,

Lenny
Nov 17 '05 #1
5 1751
The current object of the httpcontext object contains all these goodies in
there somewhere. For example, the server name would be
HttpContext.Cur rent.Server.Mac hineName
--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"L. L." <ll**@cyence.co m> wrote in message
news:Oq******** ******@tk2msftn gp13.phx.gbl...
Hi All,

Is it possible to retrieve the web site information running on the local
box? For example, I want to know the names of all web sites, the virtual
directory information and physical path that the web sites are located. I
have the local admin permission and would like to retrieve these info in C#, either in a Windows form app or ASP.NET app.

Thanks,

Lenny

Nov 17 '05 #2
Alvin,

Thanks for your reply. However, that is not what I am looking for. Please
carefully read my questions before answering them.

L.L

"Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote in
message news:O9******** ******@TK2MSFTN GP12.phx.gbl...
The current object of the httpcontext object contains all these goodies in
there somewhere. For example, the server name would be
HttpContext.Cur rent.Server.Mac hineName
--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"L. L." <ll**@cyence.co m> wrote in message
news:Oq******** ******@tk2msftn gp13.phx.gbl...
Hi All,

Is it possible to retrieve the web site information running on the local
box? For example, I want to know the names of all web sites, the virtual
directory information and physical path that the web sites are located. I have the local admin permission and would like to retrieve these info in

C#,
either in a Windows form app or ASP.NET app.

Thanks,

Lenny


Nov 17 '05 #3
I've re-read your question. You need to re-read my response. Nothing has
changed. If you want to collect that information, it is encapsulated in the
response object.

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"L. L." <ll**@cyence.co m> wrote in message
news:#b******** ******@tk2msftn gp13.phx.gbl...
Alvin,

Thanks for your reply. However, that is not what I am looking for. Please
carefully read my questions before answering them.

L.L

"Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote in
message news:O9******** ******@TK2MSFTN GP12.phx.gbl...
The current object of the httpcontext object contains all these goodies in
there somewhere. For example, the server name would be
HttpContext.Cur rent.Server.Mac hineName
--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"L. L." <ll**@cyence.co m> wrote in message
news:Oq******** ******@tk2msftn gp13.phx.gbl...
Hi All,

Is it possible to retrieve the web site information running on the local box? For example, I want to know the names of all web sites, the virtual directory information and physical path that the web sites are
located.
I have the local admin permission and would like to retrieve these info

in C#,
either in a Windows form app or ASP.NET app.

Thanks,

Lenny



Nov 17 '05 #4
On Mon, 27 Oct 2003 13:40:28 -0600, "Alvin Bruney"
<vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote:
I've re-read your question. You need to re-read my response. Nothing has
changed. If you want to collect that information, it is encapsulated in the
response object.

I may be wrong but I don't think the OP meant for the current
application. I think he means effectively the information that you get
from the IIS management console (or whatever it's called) where you
can create new web sites, and so on.
Nov 17 '05 #5
Maybe I did not express it clearly. If so I appologize.

What I really need to know is the information of all the web sites on the
web server. The Respons object only exposes the info of the current
application. Like Lyndon pointed out, I may need access IIS admin API to do
this. But I don't know how.

L.L.
"Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote in
message news:uJ******** *****@TK2MSFTNG P10.phx.gbl...
I've re-read your question. You need to re-read my response. Nothing has
changed. If you want to collect that information, it is encapsulated in the response object.

--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"L. L." <ll**@cyence.co m> wrote in message
news:#b******** ******@tk2msftn gp13.phx.gbl...
Alvin,

Thanks for your reply. However, that is not what I am looking for. Please
carefully read my questions before answering them.

L.L

"Alvin Bruney" <vapordan_spam_ me_not@hotmail_ no_spamhotmail. com> wrote in message news:O9******** ******@TK2MSFTN GP12.phx.gbl...
The current object of the httpcontext object contains all these
goodies in there somewhere. For example, the server name would be
HttpContext.Cur rent.Server.Mac hineName
--
-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"L. L." <ll**@cyence.co m> wrote in message
news:Oq******** ******@tk2msftn gp13.phx.gbl...
> Hi All,
>
> Is it possible to retrieve the web site information running on the local > box? For example, I want to know the names of all web sites, the virtual > directory information and physical path that the web sites are located.
I
> have the local admin permission and would like to retrieve these
info in C#,
> either in a Windows form app or ASP.NET app.
>
> Thanks,
>
> Lenny
>
>



Nov 17 '05 #6

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

Similar topics

1
1545
by: Helder Lima | last post by:
Hi. I've 2 questions that are linked: #1: I'm doing a site to manage a lot of unix scripts, a now how to call each script and how to pass their arguments, but most of this scripts are interactive, i.e., they ask for more information to the user. If I'm not wrong, wen we call a external program from a site with php (or any other language),...
0
1966
by: John Caruthers | last post by:
HELP! This problem is driving me crazy. All other web sites that are being served out through this server are working, including sites and virtual directories that are under the Default Web Site, yet when I attempt to browse the Default Web Site I get this error: The page cannot be displayed
0
1889
by: Jim | last post by:
This si a repost, I apologize but perhaps my original inquiry got buried under all the usenet spam... I need some help getting started with a .NET web project for a commercial site. I am new to .NET and my understanding of some (but not all) of its concepts is a little sparse. I apologize for the length of this message, but hopefully it...
25
2799
by: John Morgan | last post by:
Though I have designed and implemented a number of large reasonably well received web sites I do not consider myself a graphics designer I am now for the first time going to work with a graphics designer. I notice that in the draft design the idea will be that many 'pages' will in fact be pdf files. I suppose I exaggerate slightly but the...
21
3470
by: MLH | last post by:
A97 procedure to open http://www.arch.com/message/ enter an 800 number, press "Continue", enter a text msg string from a memo field and press "Send" This is a calendaring and appointment A97 database for an attorney's office. I'm sure it must be do-able. I know better than to mention the term "S__dK__ys" in conjunction with this topic....
71
4785
by: Murray R. Van Luyn | last post by:
Hi, Since I have made changes to my website it's been a complete flop. According to the logs, as soon as visitors have downloaded the index page they are off. I can't figure out why? http://www.review-a-gadget.com/ Is there anything obvious that I am missing? Are there problems with some browsers? Please let me know if you notice...
20
4236
by: mike | last post by:
I help manage a large web site, one that has over 600 html pages... It's a reference site for ham radio folks and as an example, one page indexes over 1.8 gb of on-line PDF documents. The site is structured as an upside-down tree, and (if I remember correctly) never more than 4 levels. The site basically grew (like the creeping black...
1
1772
by: John Dalberg | last post by:
I converted a working web site project to a web application project and I am getting a bunch of warnings and compile errors. All code using .NET's profile class is giving an error. example line: txtName.Text = Profile.FirstName gives an error: ... FirstName' is not a member of 'Profile'.
16
1455
by: Nad | last post by:
I have a very large site with valuable information. Is there any way to prevent downloading a large number of articles. Some people want to download the entire site. Any hints or pointers would be appreciated.
0
7546
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7471
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
6071
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5387
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5111
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3517
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3496
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1962
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1082
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.