U4-8966 Unable to uninstall Umbraco Forms - The relative virtual path 'bin/Umbraco.Forms.Core.dll' is not allowed here.

This commit is contained in:
Sebastiaan Janssen
2016-09-12 23:24:01 +02:00
parent 48786fcae1
commit 14c0055899

View File

@@ -20,6 +20,7 @@ using umbraco.cms.businesslogic.packager.repositories;
using umbraco.cms.businesslogic.web;
using umbraco.cms.presentation.Trees;
using umbraco.presentation.developer.packages;
using umbraco.Utils;
using umbraco.webservices;
using Umbraco.Core;
using Umbraco.Core.Configuration;
@@ -212,6 +213,9 @@ namespace Umbraco.Web.Editors
var file = IOHelper.FindFile(item);
if (file != null)
{
if (file.StartsWith("/") == false)
file = string.Format("/{0}", file);
var filePath = IOHelper.MapPath(file);
if (File.Exists(filePath))
{