Tuesday, March 27, 2012

List info about IIS websites on an asp.net page

I want to create a simple page that will list out all of the sites defined in IIS and their host-header, IP, port info.

Is there a .NET namespace/class that will allow me to do this? Anyone know where I can find some sample code?

Are you targeting IIS 6.0? If so, take a look at the following section on MSDN:

Internet Information Services (IIS) 6.0 SDK

HTH


That SDK is actually for IIS 5.0, 5.1, as well as 6.0

0 comments:

Post a Comment