Use a deterministic application name
authorMarek Habersack <grendel@twistedcode.net>
Mon, 19 Feb 2007 17:54:53 +0000 (17:54 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Mon, 19 Feb 2007 17:54:53 +0000 (17:54 -0000)
svn path=/trunk/mcs/; revision=73125

mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs
mcs/class/System.Web/System.Web.Hosting/ChangeLog

index 9186c38aa56d3b5f23e1385cd03d8bfa49ff3912..ab794dca3717b6d8f4768a1dc550c5f50d3ee2bc 100644 (file)
@@ -99,7 +99,7 @@ namespace System.Web.Hosting {
                        // 
                        // Unique Domain ID
                        //
-                       string domain_id = "ASPHOST_" + DateTime.Now.ToString().GetHashCode().ToString("x");
+                       string domain_id = (virtualDir + physicalDir).GetHashCode ().ToString ("x");
                        
                        //
                        // Setup
index 372c22782abe1050307180c660674dd37bd3cdbc..342c0ec81786f5787e4dbb30d713aa82f5f206c5 100644 (file)
@@ -1,3 +1,9 @@
+2007-02-19  Marek Habersack  <grendello@gmail.com>
+
+       * ApplicationHost.cs: Use a deterministic application name, so
+       that the temporary location is always in the same place for the
+       given app.
+
 2007-01-30  Marek Habersack  <grendello@gmail.com>
 
        * ApplicationHost.cs: Define AppDomain data item "DataDirectory" - used