Permalink
Browse files

Fix 1.1 build

svn path=/branches/mono-2-6/xsp/; revision=146775
  • Loading branch information...
1 parent 10c5115 commit 366ab0ebe4095f5ddeb0551b06e68bd1fe3b1fb1 @grendello grendello committed Nov 23, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/Mono.WebServer.FastCgi/ApplicationHost.cs
@@ -131,9 +131,11 @@ public string MapPath (string virtualPath)
{
string physPath;
+#if NET_2_0
physPath = HostingEnvironment.MapPath ((virtualPath == null || virtualPath.Length == 0 || virtualPath.TrimStart().Length == 0) ? "/" : virtualPath);
if (physPath != null && physPath.Length != 0)
return physPath;
+#endif
// For old .NET 1.x, and as a fallback mechanism until Mono's
// HostingEnvironment.MapPath method can perform the mapping

0 comments on commit 366ab0e

Please sign in to comment.