[Mono-list] ServicePointManager.CertificatePolicy

Glen Ford glen.a.ford at gmail.com
Thu Sep 13 11:43:54 EDT 2007


Hi,

I have created a ServicePointManager.CertificatePolicy to simply
return true, however I get the followng exception.  (mono 1.2.4)

Appears to indicate a config issue, but cannot see anything in configs
that would indicate a problem.

Has anyone else seen this?


Regards,


Glen



Unhandled Exception: 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.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.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection
(System.String configKey) [0x00000]
  at System.Configuration.ConfigurationManager.GetSection
(System.String sectionName) [0x00000]
  at System.Net.ServicePointManager..cctor () [0x00000] --- End of
inner exception stack trace ---


More information about the Mono-list mailing list