Helicon Ape status checking fixed

This commit is contained in:
Ruslan Keba 2013-04-09 16:14:58 +03:00
parent 6b7916bed6
commit 16d3701137

View file

@ -1914,6 +1914,10 @@ namespace WebsitePanel.Providers.Web
private bool IsHeliconApeEnabled(ServerManager srvman, string siteId) private bool IsHeliconApeEnabled(ServerManager srvman, string siteId)
{ {
if (!string.IsNullOrEmpty(siteId))
{
// Check the web site app pool in integrated pipeline mode
WebSite webSite = null; WebSite webSite = null;
webSite = webObjectsSvc.GetWebSiteFromIIS(srvman, siteId); webSite = webObjectsSvc.GetWebSiteFromIIS(srvman, siteId);
if (webSite == null) if (webSite == null)
@ -1931,6 +1935,7 @@ namespace WebsitePanel.Providers.Web
// Ape is not working in not Integrated pipeline mode // Ape is not working in not Integrated pipeline mode
return false; return false;
} }
}
var appConfig = srvman.GetApplicationHostConfiguration(); var appConfig = srvman.GetApplicationHostConfiguration();