[Mono-bugs] [Bug 445991] New: Error thrown while using ServicePointManager class with Mono 2.0

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 18 06:33:58 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=445991


           Summary: Error thrown while using ServicePointManager class with
                    Mono 2.0
           Product: Mono: Class Libraries
           Version: 2.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: kuanil at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


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 you please 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......


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list