• Not Answered

Get active Sitecore Sites from IIS

I tried to get list of active sitecore wesites running under my local iis.

 var iisManager = new ServerManager();
 SiteCollection sites = iisManager.Sites;

but it gets only one website named "website1" that is not in my sites list. Is there any other way to get running sites from iis?

3 Replies