Fixed: Juno, installing starter kit from developer section works but ends in YSOD
Fixed: Juno, installing skin from developer section works but ends in YSOD Work Items: 29821, 29820
This commit is contained in:
@@ -8,8 +8,18 @@ using umbraco.BusinessLogic;
|
||||
|
||||
namespace umbraco.presentation.install.steps.Skinning
|
||||
{
|
||||
public delegate void StarterKitDesignInstalledEventHandler();
|
||||
|
||||
public partial class loadStarterKitDesigns : System.Web.UI.UserControl
|
||||
{
|
||||
|
||||
public event StarterKitDesignInstalledEventHandler StarterKitDesignInstalled;
|
||||
|
||||
protected virtual void OnStarterKitDesignInstalled()
|
||||
{
|
||||
StarterKitDesignInstalled();
|
||||
}
|
||||
|
||||
public Guid StarterKitGuid { get; set; }
|
||||
|
||||
private cms.businesslogic.packager.repositories.Repository repo;
|
||||
@@ -121,10 +131,17 @@ namespace umbraco.presentation.install.steps.Skinning
|
||||
}
|
||||
catch
|
||||
{
|
||||
Helper.RedirectToNextStep(Page);
|
||||
|
||||
}
|
||||
|
||||
Helper.RedirectToNextStep(Page);
|
||||
try
|
||||
{
|
||||
Helper.RedirectToNextStep(Page);
|
||||
}
|
||||
catch
|
||||
{
|
||||
OnStarterKitDesignInstalled();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -10,8 +10,19 @@ using System.IO;
|
||||
|
||||
namespace umbraco.presentation.install.steps.Skinning
|
||||
{
|
||||
public delegate void StarterKitInstalledEventHandler();
|
||||
|
||||
public partial class loadStarterKits : System.Web.UI.UserControl
|
||||
{
|
||||
|
||||
public event StarterKitInstalledEventHandler StarterKitInstalled;
|
||||
|
||||
protected virtual void OnStarterKitInstalled()
|
||||
{
|
||||
StarterKitInstalled();
|
||||
}
|
||||
|
||||
|
||||
private cms.businesslogic.packager.repositories.Repository repo;
|
||||
private string repoGuid = "65194810-1f85-11dd-bd0b-0800200c9a66";
|
||||
|
||||
@@ -102,8 +113,15 @@ namespace umbraco.presentation.install.steps.Skinning
|
||||
library.RefreshContent();
|
||||
|
||||
Helper.setProgress(100, "Starter kit has been installed", "");
|
||||
((skinning)Parent.Parent.Parent.Parent.Parent).showStarterKitDesigns(kitGuid);
|
||||
|
||||
try
|
||||
{
|
||||
((skinning)Parent.Parent.Parent.Parent.Parent).showStarterKitDesigns(kitGuid);
|
||||
}
|
||||
catch
|
||||
{
|
||||
OnStarterKitInstalled();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -60,7 +60,9 @@
|
||||
<asp:PlaceHolder ID="ph_starterkits" runat="server"></asp:PlaceHolder>
|
||||
</cc1:Pane>
|
||||
|
||||
|
||||
<cc1:Pane id="installationCompleted" Text="Installation completed" runat="server" Visible="false">
|
||||
<p>Installation completed succesfully</p>
|
||||
</cc1:Pane>
|
||||
</cc1:UmbracoPanel>
|
||||
|
||||
|
||||
|
||||
@@ -20,25 +20,51 @@ namespace umbraco.presentation.umbraco.developer.Packages
|
||||
|
||||
private void showStarterKits()
|
||||
{
|
||||
ph_starterkits.Controls.Add(new UserControl().LoadControl(SystemDirectories.Install + "/steps/Skinning/loadStarterKits.ascx"));
|
||||
install.steps.Skinning.loadStarterKits starterkitsctrl =
|
||||
(install.steps.Skinning.loadStarterKits)new UserControl().LoadControl(SystemDirectories.Install + "/steps/Skinning/loadStarterKits.ascx");
|
||||
starterkitsctrl.StarterKitInstalled+=new install.steps.Skinning.StarterKitInstalledEventHandler(starterkitsctrl_StarterKitInstalled);
|
||||
|
||||
ph_starterkits.Controls.Add(starterkitsctrl);
|
||||
|
||||
|
||||
|
||||
StarterKitNotInstalled.Visible = true;
|
||||
StarterKitInstalled.Visible = false;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void showSkins(Guid starterKitGuid)
|
||||
{
|
||||
|
||||
install.steps.Skinning.loadStarterKitDesigns ctrl = (install.steps.Skinning.loadStarterKitDesigns)new UserControl().LoadControl(SystemDirectories.Install + "/steps/Skinning/loadStarterKitDesigns.ascx");
|
||||
ctrl.ID = "StarterKitDesigns";
|
||||
|
||||
ctrl.StarterKitGuid = starterKitGuid;
|
||||
|
||||
ctrl.StarterKitDesignInstalled += new install.steps.Skinning.StarterKitDesignInstalledEventHandler(ctrl_StarterKitDesignInstalled);
|
||||
ph_skins.Controls.Add(ctrl);
|
||||
|
||||
StarterKitNotInstalled.Visible = false;
|
||||
StarterKitInstalled.Visible = true;
|
||||
|
||||
}
|
||||
|
||||
void starterkitsctrl_StarterKitInstalled()
|
||||
{
|
||||
StarterKitNotInstalled.Visible = false;
|
||||
StarterKitInstalled.Visible = false;
|
||||
|
||||
installationCompleted.Visible = true;
|
||||
|
||||
}
|
||||
|
||||
void ctrl_StarterKitDesignInstalled()
|
||||
{
|
||||
StarterKitNotInstalled.Visible = false;
|
||||
StarterKitInstalled.Visible = false;
|
||||
|
||||
installationCompleted.Visible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -74,5 +74,14 @@ namespace umbraco.presentation.umbraco.developer.Packages {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.PlaceHolder ph_starterkits;
|
||||
|
||||
/// <summary>
|
||||
/// installationCompleted control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::umbraco.uicontrols.Pane installationCompleted;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user