Author: kostat
Date: 2006-11-13 05:35:51 -0500 (Mon, 13 Nov 2006)
New Revision: 67749
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs
Log:
use Type.GetType for loading full qualified types since Assembly.GetType()
fails to load them
Modified: trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
2006-11-13 09:38:00 UTC (rev 67748)
+++ trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
2006-11-13 10:35:51 UTC (rev 67749)
@@ -1,3 +1,7 @@
+2006-11-13 Konstantin Triger <[EMAIL PROTECTED]>
+
+ * WebConfigurationHost.cs: use Type.GetType for loading full qualified
types.
+
2006-11-05 Vladimir Krasnov <[EMAIL PROTECTED]>
* ProfileGroupSettings.cs, ProfileGroupSettingsCollection.cs
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs
===================================================================
---
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs
2006-11-13 09:38:00 UTC (rev 67748)
+++
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs
2006-11-13 10:35:51 UTC (rev 67749)
@@ -103,17 +103,10 @@
private Type LoadType(string typeName)
{
- Type type = null;
- Assembly [] assemblies =
AppDomain.CurrentDomain.GetAssemblies ();
-
- foreach (Assembly ass in assemblies) {
- type = ass.GetType (typeName);
- if (type == null)
- continue;
-
+ Type type = Type.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