[Mono-list] ServicePointManager.CertificatePolicy

Sebastien Pouliot sebastien.pouliot at gmail.com
Thu Sep 13 11:56:36 EDT 2007


On Thu, 2007-09-13 at 16:43 +0100, Glen Ford wrote:
> 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?

Never heard about it myself. Please fill a bug report (and include your
test case) so we'll be able to check if this still happens on SVN HEAD.

Thanks
Sebastien

> 
> 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 ---
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list



More information about the Mono-list mailing list