diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
index cc07498ac2..8bf705f9b7 100644
--- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
+++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
@@ -124,6 +124,9 @@
..\packages\ClientDependency-Mvc5.1.8.0.0\lib\net45\ClientDependency.Core.Mvc.dll
True
+
+ ..\packages\xmlrpcnet.2.5.0\lib\net20\CookComputing.XmlRpcV2.dll
+
..\packages\dotless.1.5.2\lib\dotless.Core.dll
diff --git a/src/Umbraco.Web.UI/packages.config b/src/Umbraco.Web.UI/packages.config
index 8b22708406..9f0ad872fd 100644
--- a/src/Umbraco.Web.UI/packages.config
+++ b/src/Umbraco.Web.UI/packages.config
@@ -38,4 +38,5 @@
+
\ No newline at end of file
diff --git a/src/Umbraco.Web/Umbraco.Web.csproj b/src/Umbraco.Web/Umbraco.Web.csproj
index 4327a96baa..8a35320ffb 100644
--- a/src/Umbraco.Web/Umbraco.Web.csproj
+++ b/src/Umbraco.Web/Umbraco.Web.csproj
@@ -1148,9 +1148,6 @@
ASPXCodeBehind
-
- ASPXCodeBehind
-
ASPXCodeBehind
diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/publish.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/publish.aspx.cs
deleted file mode 100644
index 255c61cbe8..0000000000
--- a/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/publish.aspx.cs
+++ /dev/null
@@ -1,240 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Collections.Generic;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-using Umbraco.Core.Logging;
-using umbraco.cms.businesslogic.web;
-using umbraco.BusinessLogic;
-using Umbraco.Core.Logging;
-using umbraco.BasePages;
-
-namespace umbraco.dialogs
-{
- ///
- /// Summary description for publish.
- ///
- [Obsolete("This is no longer used whatsoever and will be removed from the codebase")]
- public partial class publish : UmbracoEnsuredPage
- {
- protected Literal total;
-
- private int _nodeId;
- private int _nodesPublished = 0;
- private readonly List _documents = new List();
- public static string pageName = "";
-
- public publish()
- {
- CurrentApp = DefaultApps.content.ToString();
- }
-
- protected void Page_Load(object sender, EventArgs e)
- {
- _nodeId = int.Parse(helper.Request("id"));
- var d = new cms.businesslogic.web.Document(_nodeId);
- pageName = d.Text;
-
- if (d.Level > 1 && d.PathPublished == false)
- {
- TheForm.Visible = false;
- theEnd.Visible = true;
- feedbackMsg.type = uicontrols.Feedback.feedbacktype.notice;
- feedbackMsg.Text = ui.Text("publish", "contentPublishedFailedByParent", d.Text, getUser()) + "
" + ui.Text("closeThisWindow") + "";
-
- return;
- }
-
- // add control prefix to variable for support with masterpages
- var prefix = PublishUnpublishedItems.ClientID.Replace(PublishUnpublishedItems.ID, "");
- masterPagePrefix.Text = prefix;
-
- // by default we only count the published ones
- var totalNodesToPublish = cms.businesslogic.web.Document.CountSubs(_nodeId, true);
- try
- {
- Application.Lock();
- // We add both all nodes and only published nodes to the application variables so we can ajax query depending on checkboxes
- Application["publishTotalAll" + _nodeId.ToString()] = cms.businesslogic.CMSNode.CountSubs(_nodeId).ToString();
- Application["publishTotal" + _nodeId.ToString()] = totalNodesToPublish.ToString();
- Application["publishDone" + _nodeId.ToString()] = "0";
- }
- finally
- {
- Application.UnLock();
- }
- total.Text = totalNodesToPublish.ToString();
-
- // Put user code to initialize the page here
- if (!IsPostBack)
- {
- // Add caption to checkbox
- PublishAll.Text = ui.Text("publish", "publishAll", d.Text, getUser());
- ok.Text = ui.Text("content", "publish", getUser());
- ok.Attributes.Add("style", "width: 60px");
- ok.Attributes.Add("onClick", "startPublication();");
-
- // Add checkbox event, so the publish unpublished childs gets enabled
- PublishUnpublishedItems.LabelAttributes.Add("disabled", "true");
- PublishUnpublishedItems.LabelAttributes.Add("id", "publishUnpublishedItemsLabel");
- PublishUnpublishedItems.InputAttributes.Add("disabled", "true");
- PublishAll.InputAttributes.Add("onclick", "togglePublishingModes(this)");
- }
- else
- {
-
- if (PublishAll.Checked)
- {
- _nodesPublished = 0;
-
- DoPublishSubs(d);
-
- Application.Lock();
- Application["publishTotal" + _nodeId.ToString()] = 0;
- Application.UnLock();
-
- feedbackMsg.type = uicontrols.Feedback.feedbacktype.success;
-
- feedbackMsg.Text = ui.Text("publish", "nodePublishAll", d.Text, getUser()) + "
" + ui.Text("closeThisWindow") + "";
-
- ClientTools.ReloadActionNode(true, true);
-
- Application.Lock();
-
- Application["publishTotal" + _nodeId.ToString()] = null;
- Application["publishDone" + _nodeId.ToString()] = null;
- Application.UnLock();
- }
- else
- {
- if (d.PublishWithResult(getUser()))
- {
- feedbackMsg.type = uicontrols.Feedback.feedbacktype.success;
- feedbackMsg.Text = ui.Text("publish", "nodePublish", d.Text, getUser()) + "
" + ui.Text("closeThisWindow") + "";
- }
- else {
- feedbackMsg.type = uicontrols.Feedback.feedbacktype.notice;
- feedbackMsg.Text = ui.Text("publish", "contentPublishedFailedByEvent", d.Text, getUser()) + "
" + ui.Text("closeThisWindow") + "";
- }
- ClientTools.ReloadActionNode(true, false);
- }
-
- TheForm.Visible = false;
- theEnd.Visible = true;
- }
- }
-
- private void DoPublishSubs(cms.businesslogic.web.Document d)
- {
- if (d.Published || PublishUnpublishedItems.Checked)
- {
- if (d.PublishWithResult(UmbracoUser))
- {
-
-
- _nodesPublished++;
- Application.Lock();
- Application["publishDone" + _nodeId.ToString()] = _nodesPublished.ToString();
- Application.UnLock();
- foreach (var dc in d.Children)
- {
- DoPublishSubs(dc);
- }
- }
- else
- {
- LogHelper.Warn("Publishing failed due to event cancelling the publishing for document " + d.Id);
- }
- }
- }
-
- protected override void OnPreRender(EventArgs e)
- {
- base.OnPreRender(e);
-
- ScriptManager.GetCurrent(Page).Services.Add(new ServiceReference("../webservices/publication.asmx"));
- ScriptManager.GetCurrent(Page).Services.Add(new ServiceReference("../webservices/legacyAjaxCalls.asmx"));
- }
-
- ///
- /// masterPagePrefix control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Literal masterPagePrefix;
-
- ///
- /// JsInclude1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::ClientDependency.Core.Controls.JsInclude JsInclude1;
-
- ///
- /// TheForm control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Panel TheForm;
-
- ///
- /// PublishAll control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.CheckBox PublishAll;
-
- ///
- /// PublishUnpublishedItems control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.CheckBox PublishUnpublishedItems;
-
- ///
- /// ok control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Button ok;
-
- ///
- /// ProgBar1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::umbraco.uicontrols.ProgressBar ProgBar1;
-
- ///
- /// theEnd control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Panel theEnd;
-
- ///
- /// feedbackMsg control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::umbraco.uicontrols.Feedback feedbackMsg;
- }
-}