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,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();
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue