Is there a way to list all active websites that exist within IIS using c#?
Thanks
Sp
Here's an article explaining how this could be done using classes from the System.DirectoryServices namespace as well as the Microsoft.Web.Administration namespace which was introduced with IIS 7.