diff options
author | Konstantin Triger <kostat@mono-cvs.ximian.com> | 2006-11-13 13:35:51 +0300 |
---|---|---|
committer | Konstantin Triger <kostat@mono-cvs.ximian.com> | 2006-11-13 13:35:51 +0300 |
commit | f32b219d7a9f8679c77c771e1ab8d2eb23768e1f (patch) | |
tree | 8084dc7d4d736fb78aa9c0505661e7cd2b4185c8 | |
parent | 55ac593bc58754d7a24fb580956f337f890d0fa0 (diff) |
use Type.GetType for loading full qualified types since Assembly.GetType() fails to load them
svn path=/trunk/mcs/; revision=67749
-rw-r--r-- | mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs | 13 |
2 files changed, 7 insertions, 10 deletions
diff --git a/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog b/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog index 3b59b9abe91..abb7bbaae64 100644 --- a/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog +++ b/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog @@ -1,3 +1,7 @@ +2006-11-13 Konstantin Triger <kostat@mainsoft.com> + + * WebConfigurationHost.cs: use Type.GetType for loading full qualified types. + 2006-11-05 Vladimir Krasnov <vladimirk@mainsoft.com> * ProfileGroupSettings.cs, ProfileGroupSettingsCollection.cs diff --git a/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs b/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs index 86c4971d4fc..56a19d6fe7f 100644 --- a/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs +++ b/mcs/class/System.Web/System.Web.Configuration_2.0/WebConfigurationHost.cs @@ -103,17 +103,10 @@ namespace System.Web.Configuration 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; |