IIS Web site information

  • Thread starter Thread starter L. L.
  • Start date Start date
L

L. L.

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
 
Alvin,

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

L.L
 
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'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.
 
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.
 
Back
Top