Bug 311352 (MONO28531)

Summary: ** ERROR **: Type 0x1c not handled in custom attr value decoding
Product: [Mono] Mono: Runtime Reporter: Tim Coleman <tim>
Component: miscAssignee: Mono Bugs <mono-bugs>
Status: RESOLVED FIXED QA Contact: Mono Bugs <mono-bugs>
Severity: Enhancement    
Priority: P3 - Medium    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Debian Woody   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Thomas Wiest 2007-09-15 17:59:39 UTC


---- Reported by tim@timcoleman.com 2002-08-03 17:10:48 MST ----

Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:
Attempting to serialize properties to Xml which have DefaultValue
attributes that are not null.

The offending code which makes the call is in the FromProperty ()
method of System.Xml.Serialization.XmlAttributes.  The call to 
member.GetCustomAttribute () fails with an error.

Steps to reproduce the problem:
1. There aren't really any straightforward steps unfortunately;  I arrived
at this after bushwhacking my way through a bunch of code.
2. 
3. 

Actual Results:
** ERROR **: Type 0x1c not handled in custom attr value decoding
aborting...

Expected Results:
Not an error.

How often does this happen? 
Whenever I try to serialize a ServiceDescription object to Xml.

Additional Information:
Please contact Tim Coleman (tim@timcoleman.com) if you require more 
information about this bug.  It's a little tricky to describe. 

The following code snippet should generate the bug.

using System;
using System.IO;
using System.Web.Services.Description;

public class WebServiceDescription {
        public static void Main ()
        {
                TextWriter textWriter = new StringWriter ();
                ServiceDescription serviceDescription = new
ServiceDescription ();
                Binding binding = new Binding ();
                binding.Name = "binding";
                serviceDescription.Bindings.Add (binding);
                serviceDescription.Write (textWriter);
                Console.WriteLine (textWriter.ToString ());
        }
}



---- Additional Comments From lupus@ximian.com 2002-08-05 08:39:57 MST ----

Fixed in cvs.