IIS Web site information

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
 
L

L. L.

Alvin,

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

L.L
 
A

Alvin Bruney

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

Lyndon Hills

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

L. L.

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.
 

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