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,8 +70,18 @@ namespace WebsitePanel.Providers.Web.HeliconZoo
{ {
Configuration appConfig = srvman.GetApplicationHostConfiguration(); 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"); ConfigurationElement engines = heliconZooServer.GetChildElement("engines");
ConfigurationElementCollection enginesCollection = engines.GetCollection(); ConfigurationElementCollection enginesCollection = engines.GetCollection();

View file

@ -85,16 +85,18 @@ span.ValidationMessageBlock {
</fieldset> </fieldset>
<asp:Panel runat="server" ID="EnginesPanel">
<fieldset> <fieldset>
<legend> <legend>
<span>Helicon Zoo engine quotas settings</span> <span>Helicon Zoo engine quotas settings</span>
</legend> </legend>
<div class="FormBody"> <div class="FormBody">
<asp:CheckBox runat="server" ID="QuotasEnabled" Text="Enable Quotas"/> <asp:CheckBox runat="server" ID="QuotasEnabled" Text="Enable Quotas"/>
</div> </div>
</fieldset> </fieldset>
<asp:Panel runat="server" ID="EnginesPanel">
<fieldset> <fieldset>
<legend> <legend>
<span>Engines management</span> <span>Engines management</span>