diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs index b8f759ce..bb6adce0 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs @@ -78,7 +78,7 @@ namespace WebsitePanel.Providers.Web.HeliconZoo catch(Exception) { // heliconZooServer is not found - // looks like zoo is installed + // looks like zoo is not installed return result.ToArray(); } @@ -288,7 +288,18 @@ namespace WebsitePanel.Providers.Web.HeliconZoo using (var srvman = new ServerManager()) { Configuration appConfig = srvman.GetApplicationHostConfiguration(); - ConfigurationSection zooServer = appConfig.GetSection("system.webServer/heliconZooServer", siteId); + ConfigurationSection zooServer; + try + { + zooServer = appConfig.GetSection("system.webServer/heliconZooServer", siteId); + } + catch(Exception) + { + // heliconZooServer is not found + // looks like zoo is not installed + return engines.ToArray(); + + } ConfigurationElement switchboard = zooServer.GetChildElement("switchboard"); ConfigurationElementCollection switchboardCollection = switchboard.GetCollection();