Helicon Zoo: error on getting engines list fixed

This commit is contained in:
Ruslan Keba 2013-04-09 18:22:45 +03:00
parent c9def4821e
commit 1f7315c5e0

View file

@ -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();