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=76203 --- shadow/76203 2005-09-23 17:55:10.000000000 -0400 +++ shadow/76203.tmp.6093 2005-09-23 17:55:10.000000000 -0400 @@ -0,0 +1,77 @@ +Bug#: 76203 +Product: Mono: Runtime +Version: 1.1 +OS: SUSE 9.2 +OS Details: SUSE 9.3 +Status: NEW +Resolution: +Severity: +Priority: Blocker +Component: misc +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Exception thrown by XMLSerializer in web service + +Please fill in this template when reporting a bug, unless you know what +you are doing. + +Description of Problem: +With certain XML objects, an exception is thrown when browsing to a web +service page. + +Steps to reproduce the problem: +1. compile the test code +mcs -t:library -r:System.Web.Services -out:bin/E134Client.dll \ +E134Client_Abstract.cs E134Client.asmx.cs + +2. Browse to the Web service page. + +Actual Results: + + +Server error in '/E134Client' application +----------------------------------------------------------------- +Description: Error processing request. +Error Message: HTTP 500. + +Stack Trace: System.InvalidCastException: Cannot cast from source type to +destination type. +in <0x001e8> +System.Xml.Serialization.XmlReflectionImporter:ImportElementInfo +(System.Type cls, System.String defaultName, System.String +defaultNamespace, System.Type defaultType, +System.Xml.Serialization.XmlTypeMapMemberElement member, +System.Xml.Serialization.XmlAttributes atts) +in <0x006c6> +System.Xml.Serialization.XmlReflectionImporter:CreateMapMember +(System.Type declaringType, System.Xml.Serialization.XmlReflectionMember +rmember, System.String defaultNamespace) +... +in <0x00253> +System.Web.Services.Protocols.WebServiceHandlerFactory:GetHandler +(System.Web.HttpContext context, System.String verb, System.String url, +System.String filePath) +in <0x00294> System.Web.HttpApplication:CreateHttpHandler +(System.Web.HttpContext context, System.String type, System.String file, +System.String path) +in <0x0008f> System.Web.HttpApplication+CreateHandlerState:Execute () +in <0x0007c> System.Web.HttpApplication+StateMachine:ExecuteState +(IStateHandler state, System.Boolean readysync) + + + + +Expected Results: + + +How often does this happen? +every time + +Additional Information: +If I comment out line 299 in E134Client_Abstract.cs, or remove the []s +from lines 300 and 305, the web page is displayed correctly. Of course, +the webservice can no longer process that XML object. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
