Author: mhabersack
Date: 2007-01-03 17:12:52 -0500 (Wed, 03 Jan 2007)
New Revision: 70439

Modified:
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI.WebControls/ObjectDataSourceView.cs
Log:
fix for type loading

Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2007-01-03 22:03:27 UTC (rev 70438)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog      
2007-01-03 22:12:52 UTC (rev 70439)
@@ -1,3 +1,7 @@
+2007-01-03  Marek Habersack  <[EMAIL PROTECTED]>
+
+       * ObjectDataSourceView.cs: Look for unqualified type also in the 
top-level assemblies.
+
 2006-01-03 Igor Zelmanovich <[EMAIL PROTECTED]>
 
        * FormView.cs: fixed PageIndex property.

Modified: 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ObjectDataSourceView.cs
===================================================================
--- 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ObjectDataSourceView.cs    
    2007-01-03 22:03:27 UTC (rev 70438)
+++ 
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ObjectDataSourceView.cs    
    2007-01-03 22:12:52 UTC (rev 70439)
@@ -36,6 +36,7 @@
 using System.ComponentModel;
 using System.IO;
 using System.Data;
+using System.Web.Compilation;
 
 namespace System.Web.UI.WebControls
 {
@@ -504,6 +505,17 @@
                        if (type != null)
                                return type;
 
+                       IList tla;
+                       if ((tla = BuildManager.TopLevelAssemblies) != null) {
+                               foreach (Assembly asm in tla) {
+                                       if (asm == null)
+                                               continue;
+                                       type = asm.GetType (typeName);
+                                       if (type != null)
+                                               return type;
+                               }
+                       }
+                       
                        if (!Directory.Exists (PrivateBinPath))
                                return null;
 

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

Reply via email to