2008-01-16 Zoltan Varga <vargaz@gmail.com>
[mono.git] / mcs / class / System.Configuration / System.Configuration / ConfigurationElement.cs
index 4a10251075533ab06f1d4ba91926cbf8a9f09479..afd9d1811c771349f6da23634cd304aa8443264d 100644 (file)
@@ -612,7 +612,7 @@ namespace System.Configuration
                                ConfigurationValidatorBase validator = validatorAttr != null ? validatorAttr.ValidatorInstance : null;
 
                                TypeConverterAttribute convertAttr = (TypeConverterAttribute) Attribute.GetCustomAttribute (prop, typeof (TypeConverterAttribute));
-                               TypeConverter converter = convertAttr != null ? (TypeConverter) Activator.CreateInstance (Type.GetType (convertAttr.ConverterTypeName)) : null;
+                               TypeConverter converter = convertAttr != null ? (TypeConverter) Activator.CreateInstance (Type.GetType (convertAttr.ConverterTypeName), true) : null;
                                ConfigurationProperty cp = new ConfigurationProperty (name, prop.PropertyType, at.DefaultValue, converter, validator, at.Options);
 
                                cp.CollectionAttribute = Attribute.GetCustomAttribute (prop, typeof(ConfigurationCollectionAttribute)) as ConfigurationCollectionAttribute;