Helicon Ape in IIS 7 settings fixed

This commit is contained in:
ruslanht 2013-01-07 12:20:22 +02:00
parent ced48c71ea
commit dd13c67eae

View file

@ -171,7 +171,7 @@ namespace WebsitePanel.Portal.ProviderControls
// Build url manually, EditUrl throws exception: module is Null
// pid=Servers&mid=137&ctl=edit_platforminstaller&ServerID=1&Product=HeliconApe
List<string> qsParts= new List<string>();
List<string> qsParts = new List<string>();
qsParts.Add("pid=Servers");
qsParts.Add("ctl=edit_platforminstaller");
@ -180,6 +180,7 @@ namespace WebsitePanel.Portal.ProviderControls
qsParts.Add("WPIProduct=HeliconApe");
InstallHeliconApeLink.Attributes["href"] = "Default.aspx?" + String.Join("&", qsParts.ToArray());
ViewState["HeliconApeInitiallyEnabled"] = null;
}
//
@ -273,14 +274,12 @@ namespace WebsitePanel.Portal.ProviderControls
ActiveDirectoryIntegration.SaveSettings(settings);
// Helicon Ape
if (null != ViewState["HeliconApeInitiallyEnabled"])
{
bool registerHeliconApeGlobbally = chkHeliconApeGlobalRegistration.Checked;
bool bHeliconApeInitiallyEnabled = false;
if (ViewState["HeliconApeInitiallyEnabled"] != null)
bHeliconApeInitiallyEnabled = (bool)ViewState["HeliconApeInitiallyEnabled"];
if (registerHeliconApeGlobbally != bHeliconApeInitiallyEnabled)
if (registerHeliconApeGlobbally != (bool)ViewState["HeliconApeInitiallyEnabled"])
{
if (registerHeliconApeGlobbally)
{
@ -291,7 +290,7 @@ namespace WebsitePanel.Portal.ProviderControls
ES.Services.WebServers.DisableHeliconApeGlobally(int.Parse(Request.QueryString["ServiceID"]));
}
}
}
if (WDeployEnabledCheckBox.Checked)