Helicon Zoo: error on getting engines list fixed
This commit is contained in:
parent
c9def4821e
commit
1f7315c5e0
1 changed files with 13 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue