Author: roeie
Date: 2007-06-25 10:55:34 -0400 (Mon, 25 Jun 2007)
New Revision: 80686

Modified:
   
branches/mainsoft/gh20/mcs/class/System.Web/System.Web.Profile/ProfileParser.jvm.cs
Log:
performance bug

Modified: 
branches/mainsoft/gh20/mcs/class/System.Web/System.Web.Profile/ProfileParser.jvm.cs
===================================================================
--- 
branches/mainsoft/gh20/mcs/class/System.Web/System.Web.Profile/ProfileParser.jvm.cs
 2007-06-25 14:41:31 UTC (rev 80685)
+++ 
branches/mainsoft/gh20/mcs/class/System.Web/System.Web.Profile/ProfileParser.jvm.cs
 2007-06-25 14:55:34 UTC (rev 80686)
@@ -46,10 +46,15 @@
                public static Type GetProfileCommonType (HttpContext context)
                {
                        if (!ProfileCommonTypeExists)
-                               return null;
-
-                       Type profileBaseType = Type.GetType ("ProfileCommon");
-                       if (profileBaseType == null) {
+                               return null;
+                       Type profileBaseType = null;
+                       if (AppDomain.CurrentDomain.GetData 
("ProfileCommon_GetType_Failed") == null)
+                       {
+                               profileBaseType = Type.GetType 
("ProfileCommon");
+                               if (profileBaseType == null)
+                                       AppDomain.CurrentDomain.SetData 
("ProfileCommon_GetType_Failed", true);
+                       }
+                       if (profileBaseType == null) {                          
                                //PageMapper call
                                string virtualPath = "~/App_Code/ProfileCommon";
                                string resolvedUrl = 
System.Web.Util.UrlUtils.ResolveVirtualPathFromAppAbsolute 
(virtualPath).TrimEnd ('/');

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to