From 16d370113717919d805c6b4cc541dfb603f2dae8 Mon Sep 17 00:00:00 2001 From: Ruslan Keba Date: Tue, 9 Apr 2013 16:14:58 +0300 Subject: [PATCH 1/3] Helicon Ape status checking fixed --- .../WebsitePanel.Providers.Web.IIS70/IIs70.cs | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/IIs70.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/IIs70.cs index 6ec7b81d..dbf040d2 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/IIs70.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/IIs70.cs @@ -1914,22 +1914,27 @@ namespace WebsitePanel.Providers.Web private bool IsHeliconApeEnabled(ServerManager srvman, string siteId) { - WebSite webSite = null; - webSite = webObjectsSvc.GetWebSiteFromIIS(srvman, siteId); - if (webSite == null) - throw new ApplicationException( - String.Format("Could not find a web site with the following identifier: {0}.", siteId)); - - // Fill ASP.NET settings - FillAspNetSettingsFromIISObject(srvman, webSite); - - var aphl = new WebAppPoolHelper(ProviderSettings); - var currentPool = aphl.match_webapp_pool(webSite); - - if (aphl.pipeline(currentPool.Mode) != SiteAppPoolMode.Integrated) + if (!string.IsNullOrEmpty(siteId)) { - // Ape is not working in not Integrated pipeline mode - return false; + // Check the web site app pool in integrated pipeline mode + + WebSite webSite = null; + webSite = webObjectsSvc.GetWebSiteFromIIS(srvman, siteId); + if (webSite == null) + throw new ApplicationException( + String.Format("Could not find a web site with the following identifier: {0}.", siteId)); + + // Fill ASP.NET settings + FillAspNetSettingsFromIISObject(srvman, webSite); + + var aphl = new WebAppPoolHelper(ProviderSettings); + var currentPool = aphl.match_webapp_pool(webSite); + + if (aphl.pipeline(currentPool.Mode) != SiteAppPoolMode.Integrated) + { + // Ape is not working in not Integrated pipeline mode + return false; + } } From c9def4821e3350d409570f0e0a4fe4989c593b30 Mon Sep 17 00:00:00 2001 From: Ruslan Keba Date: Tue, 9 Apr 2013 17:40:47 +0300 Subject: [PATCH 2/3] Helicon Zoo: error on getting engines list fixed --- .../HeliconZoo.cs | 14 ++++++++++++-- .../ProviderControls/HeliconZoo_Settings.ascx | 16 +++++++++------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs index 7ebd4b72..b8f759ce 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs @@ -70,8 +70,18 @@ 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(); diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/HeliconZoo_Settings.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/HeliconZoo_Settings.ascx index 273c6ad2..3cbf91e5 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/HeliconZoo_Settings.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/HeliconZoo_Settings.ascx @@ -85,16 +85,18 @@ span.ValidationMessageBlock { + +
- - Helicon Zoo engine quotas settings - -
- -
+ + Helicon Zoo engine quotas settings + +
+ +
- +
Engines management From 1f7315c5e00b9edd735a7f1d8cbe77a9f006738f Mon Sep 17 00:00:00 2001 From: Ruslan Keba Date: Tue, 9 Apr 2013 18:22:45 +0300 Subject: [PATCH 3/3] Helicon Zoo: error on getting engines list fixed --- .../HeliconZoo.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs index b8f759ce..bb6adce0 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Web.HeliconZoo/HeliconZoo.cs @@ -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();