From 3ebb21391608cbb0936a4806e6ee3b65b206c1d7 Mon Sep 17 00:00:00 2001 From: Shannon Deminick Date: Wed, 6 Feb 2013 19:18:42 +0600 Subject: [PATCH] Patches installer issue. --- .../umbraco.presentation/install/utills/p.aspx.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Umbraco.Web/umbraco.presentation/install/utills/p.aspx.cs b/src/Umbraco.Web/umbraco.presentation/install/utills/p.aspx.cs index d7c99e7f47..8f27a85dd7 100644 --- a/src/Umbraco.Web/umbraco.presentation/install/utills/p.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/install/utills/p.aspx.cs @@ -1,9 +1,11 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Security.Authentication; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; +using Umbraco.Core; using umbraco.DataLayer.Utility.Installer; using umbraco.DataLayer; @@ -57,6 +59,12 @@ namespace umbraco.presentation.install.utills [System.Web.Script.Services.ScriptMethod] public static string installOrUpgrade() { + //if its not configured then we can continue + if (ApplicationContext.Current == null || ApplicationContext.Current.IsConfigured) + { + throw new AuthenticationException("The application is already configured"); + } + Helper.setProgress(5, "Opening database connection...", ""); IInstallerUtility installer;