Web app Gallery: 'ignore dependency fail' checkbox removed, warning message updated

This commit is contained in:
ruslanht 2012-12-13 14:17:15 +02:00
parent aa3a358e46
commit 934a5a9107
3 changed files with 10 additions and 4 deletions

View file

@ -4868,7 +4868,7 @@
<value>Web site "{1}" was not found</value>
</data>
<data name="Warning.WAG_CANNOT_INSTALL_APPLICATION" xml:space="preserve">
<value>Selected application cannot be installed.</value>
<value>Following dependencies may be missing:</value>
</data>
<data name="WebAppGallery.AspNet20Required" xml:space="preserve">
<value>ASP.NET 2.0</value>

View file

@ -16,7 +16,8 @@
<asp:CheckBox ID="chIgnoreDependencies" runat="server"
Text="Ignore dependency fail and install selected product anyway." Visible="false" AutoPostBack="True"
oncheckedchanged="chIgnoreDependencies_CheckedChanged" />
</div>
<div class="FormFooter">
<asp:Button ID="btnInstall" runat="server" meta:resourcekey="btnInstall" Text="Install" CssClass="Button1" OnClick="btnInstall_Click" OnClientClick="ShowProgressDialog('Installing application...');"/>

View file

@ -64,9 +64,14 @@ namespace WebsitePanel.Portal
if (appResult.ErrorCodes.Count > 0)
{
// app does not meet requirements
if (appResult.ErrorCodes.Count > 1)
{
// remove "- Your hosting package does not meet..." message
appResult.ErrorCodes.RemoveAt(0);
}
messageBox.ShowMessage(appResult, "WAG_CANNOT_INSTALL_APPLICATION", "WebAppGallery");
chIgnoreDependencies.Visible = true;
btnInstall.Enabled = false;
chIgnoreDependencies.Visible = false;
btnInstall.Enabled = true;
}
}
catch (Exception ex)