Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=80619 --- shadow/80619 2007-01-25 14:15:00.000000000 -0500 +++ shadow/80619.tmp.29388 2007-01-25 14:15:00.000000000 -0500 @@ -0,0 +1,98 @@ +Bug#: 80619 +Product: Mono: Class Libraries +Version: 1.2 +OS: GNU/Linux [Other] +OS Details: Ubuntu 6.10 +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: System +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: System.Convert exception while reading web.config + +Description of Problem: + +I have a web service. If I run it in xsp2 or mod_mono, I get an exception from +System.Configuration.ConfigurationProperty while it's reading web.config. The web.config refers +to a soapExtensionType, and it looks like Mono fails to deserialize the type attribute of this +element in the web.config file. + +The stack trace looks like this on Ubuntu and Mac OS X: + +System.NotImplementedException: The requested feature is not implemented. + at System.Configuration.ConfigurationProperty.ConvertFromString (System.String value) +[0x00000] + at System.Configuration.PropertyInformation.SetStringValue (System.String value) [0x00000] + at System.Configuration.ConfigurationElement.DeserializeElement (System.Xml.XmlReader +reader, Boolean serializeCollectionKey) [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.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.Web.Configuration.WebConfigurationManager.GetWebApplicationSection +(System.String sectionName) [0x00000] + at System.Web.Services.Configuration.WebServicesSection.get_Instance () [0x00000] + at System.Web.Services.Configuration.WebServicesSection.IsSupported (WebServiceProtocols +proto) [0x00000] + at System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler +(System.Web.HttpContext context, System.String verb, System.String url, System.String filePath) +[0x00000] + at System.Web.HttpApplication.GetHandler (System.Web.HttpContext context) [0x00000] + at System.Web.HttpApplication+<>c__CompilerGenerated3.MoveNext () [0x00000] + + + + + + + + + + +Steps to reproduce the problem: +1. Extract attached TAR file +2. cd to the xsp directory that is extracted +3. run xsp2 +4. point a browser at http://localhost:8080 +5. view stack trace + +Actual Results: +Exception is thrown + +Expected Results: +Web page displayed + +How often does this happen? +Every time + +Additional Information: + +Changfing System.Convert.ConvertFromString to this fixes the problem: + + internal object ConvertFromString (string value) + { + if (converter != null) + return converter.ConvertFromInvariantString (value); + else{ + if (type.FullName=="System.Type"){ + Type t = System.Type.GetType(value); + return t; + } + throw new NotImplementedException (); + } + } _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
