Helicon Zoo: error on getting engines list fixed
This commit is contained in:
parent
16d3701137
commit
c9def4821e
2 changed files with 21 additions and 9 deletions
|
@ -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();
|
||||
|
|
|
@ -85,16 +85,18 @@ span.ValidationMessageBlock {
|
|||
</fieldset>
|
||||
|
||||
|
||||
<asp:Panel runat="server" ID="EnginesPanel">
|
||||
|
||||
<fieldset>
|
||||
<legend>
|
||||
<span>Helicon Zoo engine quotas settings</span>
|
||||
</legend>
|
||||
<div class="FormBody">
|
||||
<asp:CheckBox runat="server" ID="QuotasEnabled" Text="Enable Quotas"/>
|
||||
</div>
|
||||
<legend>
|
||||
<span>Helicon Zoo engine quotas settings</span>
|
||||
</legend>
|
||||
<div class="FormBody">
|
||||
<asp:CheckBox runat="server" ID="QuotasEnabled" Text="Enable Quotas"/>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<asp:Panel runat="server" ID="EnginesPanel">
|
||||
|
||||
<fieldset>
|
||||
<legend>
|
||||
<span>Engines management</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue