<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Error: The type &lt;type name&gt; is not supported because it implements IDictionary.</title><link>http://blogs.msdn.com/b/sanpil/archive/2004/02/24/79346.aspx</link><description>Ferris Beuller asked me in response to my previous post: 
 Why can the serializer not serialize types that implement IDictionary? SortedList in types cannot be serialized, you get an InvalidOperationException with the innerexception of {"The type System</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Error: The type &lt;type name&gt; is not supported because it implements IDictionary.</title><link>http://blogs.msdn.com/b/sanpil/archive/2004/02/24/79346.aspx#79746</link><pubDate>Wed, 25 Feb 2004 11:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:79746</guid><dc:creator>Johnny Hall</dc:creator><description>I believe it is because the XmlSerializer has no way to know what format to serialize a dictionary as, because there is no equivalent type in XML Schema.  &lt;br&gt;&lt;br&gt;The only way to do it would have been to &amp;quot;hard-code&amp;quot; an XML format into IDictionary, or into the XmlSerializer code itself.&lt;br&gt;&lt;br&gt;And you have to remember that XmlSerializer was (I believe) added to the framework late on, and that it started out as someone's personal project.  Though don't quote me on that, I could be wrong.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=79746" width="1" height="1"&gt;</description></item><item><title>re: Error: The type &lt;type name&gt; is not supported because it implements IDictionary.</title><link>http://blogs.msdn.com/b/sanpil/archive/2004/02/24/79346.aspx#79484</link><pubDate>Wed, 25 Feb 2004 02:27:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:79484</guid><dc:creator>Johnny Hall</dc:creator><description>Here, try this...&lt;br&gt;&lt;br&gt;&lt;a target="_new" href="http://msdn.microsoft.com/msdnmag/issues/03/06/XMLFiles/default.aspx"&gt;http://msdn.microsoft.com/msdnmag/issues/03/06/XMLFiles/default.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;(2/3 of the way down)&lt;br&gt;&lt;br&gt;You can serialize IDictionary but you need to tell the serializer what the format of the XML should be by implementing IXmlSerializable.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=79484" width="1" height="1"&gt;</description></item><item><title>re: Error: The type &lt;type name&gt; is not supported because it implements IDictionary.</title><link>http://blogs.msdn.com/b/sanpil/archive/2004/02/24/79346.aspx#79476</link><pubDate>Wed, 25 Feb 2004 02:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:79476</guid><dc:creator>Ferris Beuller</dc:creator><description>Whats this newfangled BinaryFormatter Serializer thang, never seen it before.&lt;br&gt;hmm..&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=79476" width="1" height="1"&gt;</description></item><item><title>re: Error: The type &lt;type name&gt; is not supported because it implements IDictionary.</title><link>http://blogs.msdn.com/b/sanpil/archive/2004/02/24/79346.aspx#79475</link><pubDate>Wed, 25 Feb 2004 02:06:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:79475</guid><dc:creator>Ferris Beuller</dc:creator><description>Yes I was referring to XmlSerializer.&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=79475" width="1" height="1"&gt;</description></item><item><title>re: Error: The type &lt;type name&gt; is not supported because it implements IDictionary.</title><link>http://blogs.msdn.com/b/sanpil/archive/2004/02/24/79346.aspx#79470</link><pubDate>Wed, 25 Feb 2004 01:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:79470</guid><dc:creator>JosephCooney</dc:creator><description>Yes - I think he is talking about XML serialization too. IIRR I've been able to serialize plenty of things under framework 1.0 and 1.1.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=79470" width="1" height="1"&gt;</description></item><item><title>re: Error: The type &lt;type name&gt; is not supported because it implements IDictionary.</title><link>http://blogs.msdn.com/b/sanpil/archive/2004/02/24/79346.aspx#79530</link><pubDate>Wed, 25 Feb 2004 01:03:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:79530</guid><dc:creator>Ferris Beuller</dc:creator><description>But why do they disable serialization on IDictionary based collections?&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=79530" width="1" height="1"&gt;</description></item><item><title>re: Error: The type &lt;type name&gt; is not supported because it implements IDictionary.</title><link>http://blogs.msdn.com/b/sanpil/archive/2004/02/24/79346.aspx#79409</link><pubDate>Wed, 25 Feb 2004 00:40:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:79409</guid><dc:creator>Julien Ellie</dc:creator><description>I think he's talking about XML Serialization, not binary.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=79409" width="1" height="1"&gt;</description></item><item><title>re: Error: The type &lt;type name&gt; is not supported because it implements IDictionary.</title><link>http://blogs.msdn.com/b/sanpil/archive/2004/02/24/79346.aspx#79359</link><pubDate>Tue, 24 Feb 2004 23:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:79359</guid><dc:creator>Ferris Beuller</dc:creator><description>Visual Studio .NET 2003 which I would imagine is 1.1, right?&lt;br&gt;&lt;br&gt;Once I have a repro scenario on that IDE I will try it on my home 2002 edition.&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=79359" width="1" height="1"&gt;</description></item><item><title>re: Error: The type &lt;type name&gt; is not supported because it implements IDictionary.</title><link>http://blogs.msdn.com/b/sanpil/archive/2004/02/24/79346.aspx#79358</link><pubDate>Tue, 24 Feb 2004 23:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:79358</guid><dc:creator>Ferris Beuller</dc:creator><description>Visual Studio .NET 2003 which I would imagine is 1.1, right?&lt;br&gt;&lt;br&gt;Once I have a repro scenario on that IDE I will try it on my home 2002 edition.&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=79358" width="1" height="1"&gt;</description></item><item><title>re: Error: The type &lt;type name&gt; is not supported because it implements IDictionary.</title><link>http://blogs.msdn.com/b/sanpil/archive/2004/02/24/79346.aspx#79357</link><pubDate>Tue, 24 Feb 2004 23:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:79357</guid><dc:creator>Ferris Beuller</dc:creator><description>Until then I would isolate where you are throwing those exceptions in the actual serializer to see what conditions would caus&amp;#233; that because I am obviously hitting them.&lt;br&gt;&lt;br&gt;I would also check for comments like&lt;br&gt;&lt;br&gt;// This should not happen&lt;br&gt;:D  first place it jumps :D&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=79357" width="1" height="1"&gt;</description></item></channel></rss>