diff --git a/src/Umbraco.Web.UI/App_Plugins/MyPackage/PropertyEditors/ServerInfoPropertyEditor.cs b/src/Umbraco.Web.UI/App_Plugins/MyPackage/PropertyEditors/ServerInfoPropertyEditor.cs index 2df6fa8698..1b01676ac9 100644 --- a/src/Umbraco.Web.UI/App_Plugins/MyPackage/PropertyEditors/ServerInfoPropertyEditor.cs +++ b/src/Umbraco.Web.UI/App_Plugins/MyPackage/PropertyEditors/ServerInfoPropertyEditor.cs @@ -11,9 +11,9 @@ namespace Umbraco.Web.UI.App_Plugins.MyPackage.PropertyEditors { protected override ValueEditor CreateValueEditor() { - if (HttpContext.Current == null) + if (UmbracoContext.Current == null || UmbracoContext.Current.HttpContext == null) { - throw new InvalidOperationException("This property editor only works in a web context"); + throw new InvalidOperationException("This property editor only works in an umbraco web context"); } var urlHelper = new UrlHelper(new RequestContext(new HttpContextWrapper(HttpContext.Current), new RouteData())); diff --git a/src/Umbraco.Web.UI/umbraco/Views/Default.cshtml b/src/Umbraco.Web.UI/umbraco/Views/Default.cshtml index 8116bb32e4..e909f90a47 100644 --- a/src/Umbraco.Web.UI/umbraco/Views/Default.cshtml +++ b/src/Umbraco.Web.UI/umbraco/Views/Default.cshtml @@ -1,4 +1,7 @@ -@using Umbraco.Core +@using System.Web.Mvc.Html +@using Umbraco.Core +@using ClientDependency.Core +@using ClientDependency.Core.Mvc @inherits System.Web.Mvc.WebViewPage @{ Layout = null; @@ -18,6 +21,8 @@ @*Currently this needs to be loaded before anything*@ + +