Helicon Zoo: error on getting engines list fixed

This commit is contained in:
Ruslan Keba 2013-04-09 17:40:47 +03:00
parent 16d3701137
commit c9def4821e
2 changed files with 21 additions and 9 deletions

View file

@ -70,7 +70,17 @@ namespace WebsitePanel.Providers.Web.HeliconZoo
{
Configuration appConfig = srvman.GetApplicationHostConfiguration();
ConfigurationSection heliconZooServer = appConfig.GetSection("system.webServer/heliconZooServer");
ConfigurationSection heliconZooServer;
try
{
heliconZooServer = appConfig.GetSection("system.webServer/heliconZooServer");
}
catch(Exception)
{
// heliconZooServer is not found
// looks like zoo is installed
return result.ToArray();
}
ConfigurationElement engines = heliconZooServer.GetChildElement("engines");
ConfigurationElementCollection enginesCollection = engines.GetCollection();

View file

@ -85,6 +85,8 @@ span.ValidationMessageBlock {
</fieldset>
<asp:Panel runat="server" ID="EnginesPanel">
<fieldset>
<legend>
<span>Helicon Zoo engine quotas settings</span>
@ -94,7 +96,7 @@ span.ValidationMessageBlock {
</div>
</fieldset>
<asp:Panel runat="server" ID="EnginesPanel">
<fieldset>
<legend>
<span>Engines management</span>