From e3e52b343d34e861f742a06d91f3186454eb0b83 Mon Sep 17 00:00:00 2001 From: Justin Etheredge Date: Mon, 28 Nov 2011 11:40:51 -0500 Subject: [PATCH] Fixed issues in FileSystem.cs where we were using the request to resolve the application path. --- SquishIt.Framework/FileSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SquishIt.Framework/FileSystem.cs b/SquishIt.Framework/FileSystem.cs index 0339056..ac6109d 100644 --- a/SquishIt.Framework/FileSystem.cs +++ b/SquishIt.Framework/FileSystem.cs @@ -38,9 +38,9 @@ public static string ResolveAppRelativePathToFileSystem(string file) public static string ResolveFileSystemPathToAppRelative(string file) { - if (HttpContext.Current != null) + if (HttpContext.Current != null) { - var root = new Uri (HttpContext.Current.Request.PhysicalApplicationPath); + var root = new Uri(HttpContext.Current.Server.MapPath("/")); return root.MakeRelativeUri (new Uri (file, UriKind.RelativeOrAbsolute)).ToString (); } else