diff --git a/src/Umbraco.Core/Configuration/GlobalSettings.cs b/src/Umbraco.Core/Configuration/GlobalSettings.cs
index 855745244f..a668ffd0a1 100644
--- a/src/Umbraco.Core/Configuration/GlobalSettings.cs
+++ b/src/Umbraco.Core/Configuration/GlobalSettings.cs
@@ -201,7 +201,7 @@ namespace Umbraco.Core.Configuration
}
}
- string fileName = String.Concat(vDir, "web.config");
+ string fileName = System.IO.Path.Combine(vDir, "web.config");
var xml = XDocument.Load(fileName, LoadOptions.PreserveWhitespace);
var appSettings = xml.Root.Descendants("appSettings").Single();
@@ -223,7 +223,7 @@ namespace Umbraco.Core.Configuration
/// The fullpath to root.
public static string FullpathToRoot
{
- get { return IOHelper.GetRootDirectorySafe() + System.IO.Path.DirectorySeparatorChar; }
+ get { return IOHelper.GetRootDirectorySafe(); }
}
///
diff --git a/src/Umbraco.Core/DatabaseContext.cs b/src/Umbraco.Core/DatabaseContext.cs
index 75931ba89b..b0420218fc 100644
--- a/src/Umbraco.Core/DatabaseContext.cs
+++ b/src/Umbraco.Core/DatabaseContext.cs
@@ -207,7 +207,7 @@ namespace Umbraco.Core
}
}
- string fileName = String.Concat(vDir, "web.config");
+ string fileName = System.IO.Path.Combine(vDir, "web.config");
var xml = XDocument.Load(fileName, LoadOptions.PreserveWhitespace);
var connectionstrings = xml.Root.Descendants("connectionStrings").Single();