[MonoDevelop] getting configurationException : Duplicate element in collection with MONO 2.0
anil1
anil.kmch at gmail.com
Tue Nov 18 05:08:17 EST 2008
Earlier with mono 1.2 my application was running well. But when i compiled it
on Mono 2.0 using 'gmcs' , Since then it is giving an exception while
running the application:
System.TypeInitializationException: An exception was thrown by the type
initializer for System.Net.ServicePointManager --->
System.Configuration.ConfigurationException: Duplicate element in collection
at System.Configuration.ConfigurationElementCollection.BaseAdd
(System.Configuration.ConfigurationElement element, Boolean throwIfExists)
[0x00000]
at System.Configuration.ConfigurationElementCollection.BaseAdd
(System.Configuration.ConfigurationElement element) [0x00000]
at
System.Configuration.ConfigurationElementCollection.OnDeserializeUnrecognizedElement
(System.String elementName, System.Xml.XmlReader reader) [0x00000]
at System.Configuration.ConfigurationElement.DeserializeElement
(System.Xml.XmlReader reader, Boolean serializeCollectionKey) [0x00000]
at System.Configuration.ConfigurationSection.DoDeserializeSection
(System.Xml.XmlReader reader) [0x00000]
at System.Configuration.ConfigurationSection.DeserializeSection
(System.Xml.XmlReader reader) [0x00000]
at System.Configuration.Configuration.GetSectionInstance
(System.Configuration.SectionInfo config, Boolean createDefaultInstance)
[0x00000]
at System.Configuration.ConfigurationSectionCollection.get_Item
(System.String name) [0x00000]
at System.Configuration.Configuration.GetSection (System.String path)
[0x00000]
at System.Web.Configuration.WebConfigurationManager.GetSection
(System.String sectionName, System.String path) [0x00000]
at System.Web.Configuration.WebConfigurationManager.GetSection
(System.String sectionName) [0x00000]
at
System.Web.Configuration.HttpConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection
(System.String configKey) [0x00000]
at System.Configuration.ConfigurationManager.GetSection (System.String
sectionName) [0x00000]
at System.Net.ServicePointManager..cctor () [0x00000]
-------------------------------------------
I use --> private ICertificatePolicy defaultCertPolicy =
ServicePointManager.CertificatePolicy;
Can someone tell me that something has changed in Mono 2.0 with respect to
usage of this "ServicePointManager" class. Or if more info is required
regarding the problem that i mentioned here......
--
View this message in context: http://www.nabble.com/getting-configurationException-%3A-Duplicate-element-in-collection-with-MONO-2.0-tp20556656p20556656.html
Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
More information about the Monodevelop-list
mailing list