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

@ -180,6 +180,7 @@ namespace WebsitePanel.Portal.ProviderControls
qsParts.Add("WPIProduct=HeliconApe"); qsParts.Add("WPIProduct=HeliconApe");
InstallHeliconApeLink.Attributes["href"] = "Default.aspx?" + String.Join("&", qsParts.ToArray()); InstallHeliconApeLink.Attributes["href"] = "Default.aspx?" + String.Join("&", qsParts.ToArray());
ViewState["HeliconApeInitiallyEnabled"] = null;
} }
// //
@ -273,14 +274,12 @@ namespace WebsitePanel.Portal.ProviderControls
ActiveDirectoryIntegration.SaveSettings(settings); ActiveDirectoryIntegration.SaveSettings(settings);
// Helicon Ape // Helicon Ape
if (null != ViewState["HeliconApeInitiallyEnabled"])
{
bool registerHeliconApeGlobbally = chkHeliconApeGlobalRegistration.Checked; bool registerHeliconApeGlobbally = chkHeliconApeGlobalRegistration.Checked;
if (registerHeliconApeGlobbally != (bool)ViewState["HeliconApeInitiallyEnabled"])
bool bHeliconApeInitiallyEnabled = false;
if (ViewState["HeliconApeInitiallyEnabled"] != null)
bHeliconApeInitiallyEnabled = (bool)ViewState["HeliconApeInitiallyEnabled"];
if (registerHeliconApeGlobbally != bHeliconApeInitiallyEnabled)
{ {
if (registerHeliconApeGlobbally) if (registerHeliconApeGlobbally)
{ {
@ -291,7 +290,7 @@ namespace WebsitePanel.Portal.ProviderControls
ES.Services.WebServers.DisableHeliconApeGlobally(int.Parse(Request.QueryString["ServiceID"])); ES.Services.WebServers.DisableHeliconApeGlobally(int.Parse(Request.QueryString["ServiceID"]));
} }
} }
}
if (WDeployEnabledCheckBox.Checked) if (WDeployEnabledCheckBox.Checked)