diff --git a/src/Umbraco.Web.UI/Umbraco/masterpages/Default.Master.cs b/src/Umbraco.Web.UI/Umbraco/masterpages/Default.Master.cs
deleted file mode 100644
index 33daac7b32..0000000000
--- a/src/Umbraco.Web.UI/Umbraco/masterpages/Default.Master.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-
-namespace Umbraco.Web.UI.Umbraco.Masterpages
-{
- public partial class Default : global::umbraco.presentation.masterpages._default
- {
- }
-}
diff --git a/src/Umbraco.Web.UI/Umbraco/masterpages/Default.Master.designer.cs b/src/Umbraco.Web.UI/Umbraco/masterpages/Default.Master.designer.cs
deleted file mode 100644
index 68f54a4fab..0000000000
--- a/src/Umbraco.Web.UI/Umbraco/masterpages/Default.Master.designer.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace Umbraco.Web.UI.Umbraco.Masterpages {
-
-
- public partial class Default {
- }
-}
diff --git a/src/Umbraco.Web.UI/Umbraco/masterpages/UmbracoDialog.master.cs b/src/Umbraco.Web.UI/Umbraco/masterpages/UmbracoDialog.master.cs
deleted file mode 100644
index 33d1c9f79b..0000000000
--- a/src/Umbraco.Web.UI/Umbraco/masterpages/UmbracoDialog.master.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-
-namespace Umbraco.Web.UI.Umbraco.Masterpages
-{
- public partial class UmbracoDialog : global::umbraco.presentation.masterpages.umbracoDialog
- {
- }
-}
diff --git a/src/Umbraco.Web.UI/Umbraco/masterpages/UmbracoDialog.master.designer.cs b/src/Umbraco.Web.UI/Umbraco/masterpages/UmbracoDialog.master.designer.cs
deleted file mode 100644
index 38f9e1f6bc..0000000000
--- a/src/Umbraco.Web.UI/Umbraco/masterpages/UmbracoDialog.master.designer.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace Umbraco.Web.UI.Umbraco.Masterpages {
-
-
- public partial class UmbracoDialog {
-
- ///
- /// DocType control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ContentPlaceHolder DocType;
- }
-}
diff --git a/src/Umbraco.Web.UI/Umbraco/masterpages/UmbracoPage.master.cs b/src/Umbraco.Web.UI/Umbraco/masterpages/UmbracoPage.master.cs
deleted file mode 100644
index e45cf3e68b..0000000000
--- a/src/Umbraco.Web.UI/Umbraco/masterpages/UmbracoPage.master.cs
+++ /dev/null
@@ -1,11 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-
-namespace Umbraco.Web.UI.Umbraco.Masterpages
-{
- public partial class UmbracoPage : global::umbraco.presentation.masterpages.umbracoPage
- {
- }
-}
diff --git a/src/Umbraco.Web.UI/Umbraco/masterpages/UmbracoPage.master.designer.cs b/src/Umbraco.Web.UI/Umbraco/masterpages/UmbracoPage.master.designer.cs
deleted file mode 100644
index 7a24953c3f..0000000000
--- a/src/Umbraco.Web.UI/Umbraco/masterpages/UmbracoPage.master.designer.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace Umbraco.Web.UI.Umbraco.Masterpages {
-
-
- public partial class UmbracoPage {
-
- ///
- /// DocType control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ContentPlaceHolder DocType;
- }
-}
diff --git a/src/Umbraco.Web.UI/Umbraco/masterpages/umbracoDialog.Master b/src/Umbraco.Web.UI/Umbraco/masterpages/umbracoDialog.Master
deleted file mode 100644
index d74a41d637..0000000000
--- a/src/Umbraco.Web.UI/Umbraco/masterpages/umbracoDialog.Master
+++ /dev/null
@@ -1,35 +0,0 @@
-<%@ Master Language="C#" AutoEventWireup="True" CodeBehind="UmbracoDialog.master.cs" Inherits="Umbraco.Web.UI.Umbraco.Masterpages.UmbracoDialog" %>
-
-
-
-
-
-<%@ Register TagPrefix="umb" Namespace="ClientDependency.Core.Controls" Assembly="ClientDependency.Core" %>
-<%@ Register TagPrefix="umbClient" Namespace="Umbraco.Web.UI.Bundles" Assembly="Umbraco.Web" %>
-<%@ Register TagPrefix="cc1" Namespace="Umbraco.Web.UI.JavaScript" Assembly="Umbraco.Web" %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Umbraco.Web.UI/Umbraco/masterpages/umbracoPage.Master b/src/Umbraco.Web.UI/Umbraco/masterpages/umbracoPage.Master
deleted file mode 100644
index 380ed3d898..0000000000
--- a/src/Umbraco.Web.UI/Umbraco/masterpages/umbracoPage.Master
+++ /dev/null
@@ -1,40 +0,0 @@
-<%@ Master Language="C#" AutoEventWireup="True" CodeBehind="UmbracoPage.master.cs" Inherits="Umbraco.Web.UI.Umbraco.Masterpages.UmbracoPage" %>
-
-
-
-
-
-<%@ Register TagPrefix="umb" Namespace="ClientDependency.Core.Controls" Assembly="ClientDependency.Core" %>
-<%@ Register TagPrefix="umbClient" Namespace="Umbraco.Web.UI.Bundles" Assembly="Umbraco.Web" %>
-<%@ Register TagPrefix="cc1" Namespace="Umbraco.Web.UI.JavaScript" Assembly="Umbraco.Web" %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/masterpages/default.Master.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/masterpages/default.Master.cs
deleted file mode 100644
index c28a218246..0000000000
--- a/src/Umbraco.Web/umbraco.presentation/umbraco/masterpages/default.Master.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-using System.Web.Mvc;
-using System.Web.UI;
-using Umbraco.Web;
-using System.IO;
-
-namespace umbraco.presentation.masterpages
-{
- public partial class _default : MasterPage
- {
-
- protected override void Render(HtmlTextWriter writer)
- {
- // get base output
- StringWriter baseWriter = new StringWriter();
- base.Render(new HtmlTextWriter(baseWriter));
- string baseOutput = baseWriter.ToString();
-
- // add custom umbraco namespace (required for events on custom tags in IE)
- baseOutput = baseOutput.Replace("
- /// ContentPlaceHolderDefault control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ContentPlaceHolder ContentPlaceHolderDefault;
- }
-}
diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/masterpages/umbracoDialog.Master.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/masterpages/umbracoDialog.Master.cs
deleted file mode 100644
index b7ec63576b..0000000000
--- a/src/Umbraco.Web/umbraco.presentation/umbraco/masterpages/umbracoDialog.Master.cs
+++ /dev/null
@@ -1,161 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Web;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-using Umbraco.Core.IO;
-using Umbraco.Web.UI.JavaScript;
-
-namespace umbraco.presentation.masterpages
-{
- public partial class umbracoDialog : System.Web.UI.MasterPage
- {
-
- public bool reportModalSize { get; set; }
- public static new event MasterPageLoadHandler Load;
- public new static event MasterPageLoadHandler Init;
-
- protected void Page_Load(object sender, EventArgs e)
- {
- ClientLoader.DataBind();
- ScriptManager.RegisterStartupScript(Page, Page.GetType(), "setRoot", "UmbClientMgr.setUmbracoPath(\"" + IOHelper.ResolveUrl(SystemDirectories.Umbraco) + "\");", true);
- FireOnLoad(e);
- }
-
- protected override void OnInit(EventArgs e)
- {
- base.OnInit(e);
-
- if (Init != null)
- {
- Init(this, e);
- }
- }
-
-
- protected virtual void FireOnLoad(EventArgs e)
- {
- if (Load != null)
- {
- Load(this, e);
- }
- }
-
- ///
- /// Head1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
-
- ///
- /// ClientLoader control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected UmbracoClientDependencyLoader ClientLoader;
-
- ///
- /// CssInclude1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::ClientDependency.Core.Controls.CssInclude CssInclude1;
-
- ///
- /// JsInclude1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::ClientDependency.Core.Controls.JsInclude JsInclude1;
-
- ///
- /// JsInclude3 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::ClientDependency.Core.Controls.JsInclude JsInclude3;
-
- ///
- /// JsInclude6 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::ClientDependency.Core.Controls.JsInclude JsInclude6;
-
- ///
- /// JsInclude4 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::ClientDependency.Core.Controls.JsInclude JsInclude4;
-
- ///
- /// JsInclude2 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::ClientDependency.Core.Controls.JsInclude JsInclude2;
-
- ///
- /// head control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ContentPlaceHolder head;
-
- ///
- /// form1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
- ///
- /// ScriptManager1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.ScriptManager ScriptManager1;
-
- ///
- /// body control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ContentPlaceHolder body;
-
- ///
- /// footer control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.ContentPlaceHolder footer;
- }
-}
diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/masterpages/umbracoPage.Master.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/masterpages/umbracoPage.Master.cs
deleted file mode 100644
index 584ad4ca7f..0000000000
--- a/src/Umbraco.Web/umbraco.presentation/umbraco/masterpages/umbracoPage.Master.cs
+++ /dev/null
@@ -1,239 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Web;
-using System.Web.Mvc;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-
-//This is only in case an upgrade goes wrong and the the /masterpages/ files are not copied over
-//which would result in an error. so we have kept the old namespaces intact with references to new ones
-using StackExchange.Profiling;
-using Umbraco.Core.Configuration;
-using Umbraco.Core.Profiling;
-using Umbraco.Web;
-using Umbraco.Web.UI.JavaScript;
-using mp = umbraco.presentation.masterpages;
-namespace umbraco.presentation.umbraco.masterpages
-{
- public class umbracoPage : mp.umbracoPage { }
- public class umbracoDialog : mp.umbracoDialog { }
-}
-
-namespace umbraco.presentation.masterpages
-{
- public delegate void MasterPageLoadHandler(object sender, System.EventArgs e);
-
- public partial class umbracoPage : System.Web.UI.MasterPage
- {
-
- public new static event MasterPageLoadHandler Load;
- public new static event MasterPageLoadHandler Init;
-
- protected void Page_Load(object sender, EventArgs e)
- {
- ClientLoader.DataBind();
- FireOnLoad(e);
- }
-
-
- protected override void Render(HtmlTextWriter writer)
- {
- // get base output
- var baseWriter = new StringWriter();
- base.Render(new HtmlTextWriter(baseWriter));
- var baseOutput = baseWriter.ToString();
-
- // profiling
- if (string.IsNullOrEmpty(Request.QueryString["umbDebug"]) == false && GlobalSettings.DebugMode)
- {
- var htmlHelper = new HtmlHelper(new ViewContext(), new ViewPage());
- baseOutput = baseOutput.Replace("", htmlHelper.RenderProfiler() + "