Soap Serializer does not support serializing Generic Types.I tried to serialize an object contains list (List&lt;&gt;) of objects and I got&nbsp;this exception:<br />Soap Serializer does not support serializing Generic Types : System.Collections.Generic.List.<br /><br />It works fine with the&nbsp;<font color="#008000" size="2">BinaryFormatter.</font><br /><br />© 2009 Microsoft Corporation. All rights reserved.Wed, 03 Dec 2008 10:42:05 Zee4a7a63-290e-432f-bd45-44f4cb7a3467http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#ee4a7a63-290e-432f-bd45-44f4cb7a3467http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#ee4a7a63-290e-432f-bd45-44f4cb7a3467Bijanhttp://social.msdn.microsoft.com/Profile/en-US/?user=BijanSoap Serializer does not support serializing Generic Types.I tried to serialize an object contains list (List&lt;&gt;) of objects and I got&nbsp;this exception:<br />Soap Serializer does not support serializing Generic Types : System.Collections.Generic.List.<br /><br />It works fine with the&nbsp;<font color="#008000" size="2">BinaryFormatter.</font><br /><br />Thu, 02 Jun 2005 19:12:43 Z2005-06-02T19:12:43Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#c3f9cf2e-e6d6-4bca-aef9-0c179f306e5ehttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#c3f9cf2e-e6d6-4bca-aef9-0c179f306e5eEugene Osovetskyhttp://social.msdn.microsoft.com/Profile/en-US/?user=Eugene%20OsovetskySoap Serializer does not support serializing Generic Types.That is correct. We have decided not to invest in any significant new feature work for the SoapFormatter in Whidbey.<br /><br />&nbsp;-- Eugene OsovetskyThu, 02 Jun 2005 22:17:46 Z2005-06-02T22:17:46Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#eb650c16-4e65-4ef5-82f4-7387cf8c0134http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#eb650c16-4e65-4ef5-82f4-7387cf8c0134Bijanhttp://social.msdn.microsoft.com/Profile/en-US/?user=BijanSoap Serializer does not support serializing Generic Types.I don't this that is a good idea. It is a matter of consistency between the binary formmater and the SOAP formmater.Thu, 02 Jun 2005 23:44:09 Z2005-06-02T23:44:09Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#a014576a-42ae-4dd0-b5dc-5885cd9090c0http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#a014576a-42ae-4dd0-b5dc-5885cd9090c0douglasphttp://social.msdn.microsoft.com/Profile/en-US/?user=douglaspSoap Serializer does not support serializing Generic Types.<p>We are aware of that, but the SoapFormatter is and will continue to become less important as time passes.<br /><br />If you need an Xml projection of a CLR type, the XmlSerializer is an excellent option until Indigo ships.</p>Thu, 14 Jul 2005 00:50:17 Z2005-07-14T00:50:17Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#6260bb72-2b88-4106-a41e-90bf4e4502achttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#6260bb72-2b88-4106-a41e-90bf4e4502acJoseph Molnarhttp://social.msdn.microsoft.com/Profile/en-US/?user=Joseph%20MolnarSoap Serializer does not support serializing Generic Types.Actually XmlSerializer IS NOT an excellent option. It basically cannot serialize private members (public properties are pretty limiting), which is an important part of the state of an object (obviously). I find this rather shocking that this made it into the final release of the product.&nbsp; Indigo/WCF is a long ways off.Sat, 26 Nov 2005 08:58:26 Z2005-11-26T08:58:26Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#25d7ccfa-85f2-496d-ae7b-14774e912458http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#25d7ccfa-85f2-496d-ae7b-14774e912458jristahttp://social.msdn.microsoft.com/Profile/en-US/?user=jristaSoap Serializer does not support serializing Generic Types.<P>I have to agree with Joseph on this. The XmlSerializer has some SERIOUS defficiencies that make it a very poor choice for serializing things. Aside from its inability to serialize private members, the XmlSerializer has issues serializing collections, and can't serialize anything that implements IDictionary at all. Class structures that contain circular references are also non-serializable, or their serialization is very limited.</P> <P>.NET is in dire need of a better serializer, and the SoapFormatter does pretty well, except for this lack of support for Generics. :(</P>Fri, 30 Dec 2005 23:33:15 Z2005-12-30T23:33:15Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#ddbff2b3-88f4-4569-ad9b-47d4a7932806http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#ddbff2b3-88f4-4569-ad9b-47d4a7932806Graham Shttp://social.msdn.microsoft.com/Profile/en-US/?user=Graham%20SSoap Serializer does not support serializing Generic Types.<TABLE cellSpacing=0 cellPadding=0 width="90%" align=left> <TBODY> <TR> <TD class=txt4lt style="WORD-WRAP: break-word" width=625><SPAN> <P>I have to agree with the others that XmlSerializer is a poor relation - it will not serialize fields of types&nbsp;without a default constructor - in particular the one that is causing me frustration is the&nbsp;System.Uri class.</P> <P>With&nbsp;a class that has&nbsp;a System.Uri field <EM>and </EM>a generic type field,&nbsp;neither the SoapFormatter nor the XmlSerializer will work - the only solution seems to be to use the BinaryFormatter.</P></SPAN></TD></TR></TBODY></TABLE>Fri, 13 Jan 2006 15:36:00 Z2006-01-13T15:36:00Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#c4ad9e71-55b5-4ba2-bee9-3e320e310b88http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#c4ad9e71-55b5-4ba2-bee9-3e320e310b88Mauro Sturarohttp://social.msdn.microsoft.com/Profile/en-US/?user=Mauro%20SturaroSoap Serializer does not support serializing Generic Types.<P>I Agree: I use XmlSerializer to build documentation or to share information from&nbsp;different application. But I use SOAP or Binary serialization to Save and Reload the whole&nbsp;application object graph.</P> <P>Mi application evolves in time, so the internal structure changes and i need to reload also the old save version. </P> <P>For very little changes i can&nbsp;handle it in the code, but for big changes it can be impossible.</P> <P>So, until some week ago,&nbsp;I&nbsp;usually write code that load the xml of the soap-serialized apllication an conver it in the new structure.</P> <P>But now I've used some generics ... and I can't serialize it in soap format. And I've not found any instrument to manipulate the output of&nbsp;the binary serializer.</P> <P>I've also try to use a serialization surrogate, but it dos't work in .NET 2.0 ( see my other post:<a target="_blank" title="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=194553&amp;SiteID=1" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=194553&amp;SiteID=1">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=194553&amp;SiteID=1</a>).</P> <P>&nbsp;and now I'm scraping my heads thinking about a good solution ...</P> <P>&nbsp;</P></A>Sat, 14 Jan 2006 11:06:10 Z2006-01-14T11:06:10Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#48581bc4-9c37-4dfc-967b-ccc4d1ca0171http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#48581bc4-9c37-4dfc-967b-ccc4d1ca0171jristahttp://social.msdn.microsoft.com/Profile/en-US/?user=jristaSoap Serializer does not support serializing Generic Types.<P>I think the defficiencies of the XmlSerializer and sometimes the SoapFormatter are serious issues that need to be addressed in future .NET versions, or in WinFX. I havn't used Indigo, so I am not sure what kind of advancements have been made there. But its definitely something that needs to be addressed.</P> <P>I am currently working on a project where we had to ditch a months worth of work on a web services layer, and move the business logic onto the same server as our web server. There were too many issues serializing things. We now have had to slate time to design and develop our own distribution mechanism, using .NET Remoting and the BinaryFormatter, which will take another month or so to develop. All in all, the defficiencies of the XmlSerializer and .NET's native Web Service serialization capabilities have cost us several months of development time, and forced a reduction in the initial delivery of an application.</P> <P>While I do not think that Java is any better (on the contrary, it seems worse in many areas regarding serialization and web services), and we will not be changing off the .NET platform, serialization and web service capabilities in .NET are very dissapointing.</P>Sat, 14 Jan 2006 23:33:39 Z2006-01-14T23:33:39Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#45ab1a5e-3fe9-463a-a716-b50e3bae189dhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#45ab1a5e-3fe9-463a-a716-b50e3bae189dBrownie Pointshttp://social.msdn.microsoft.com/Profile/en-US/?user=Brownie%20PointsSoap Serializer does not support serializing Generic Types.<p>This is the result of XML and WebServices being touted as a cure all for every data transmission woe we have.</p> <p>XML/SOAP has serious limitations among the most obvious being its verbosity. SOAP is PERFECT for extranet integration where you have no control over your partners' environments. It does not belong within an internal network ESPECIALLY when the communication is between two .Net applications.</p> <p>If you have two internal .Net applications that want to communicate, use .Net remoting with the binary formatter. It doesn't take much effort to switch applications that use the soap formatter over, and your network will appreciate the lighter load.</p> <p>There are even ways to get Java and .Net applications to communicate without SOAP. But that's a post for another day.</p>Tue, 17 Jan 2006 21:32:17 Z2006-01-17T21:32:17Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#f7093458-3cd3-49a4-88cc-15ae90607b4fhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#f7093458-3cd3-49a4-88cc-15ae90607b4fxinzhanghttp://social.msdn.microsoft.com/Profile/en-US/?user=xinzhangSoap Serializer does not support serializing Generic Types.<br>This is fine. I can live with use BinaryServerFormatterSinkProvider only.<br>However, in our scenario, we are using event call back from server to client.<br>So after I changed from SoapServerFormatterSinkProvider  to BinaryServerFormatter<br>in my client data connection file, with the following codes like these<br><br>                BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider();<br>                BinaryClientFormatterSinkProvider clientProv = new BinaryClientFormatterSinkProvider();<br><br>                //SoapServerFormatterSinkProvider serverProv = new SoapServerFormatterSinkProvider();<br>                //SoapClientFormatterSinkProvider clientProv = new SoapClientFormatterSinkProvider();<br><br>                serverProv.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;<br>                <br>                //SoapClientFormatterSinkProvider clientProv = new SoapClientFormatterSinkProvider();<br><br>                IDictionary props = new Hashtable();<br>                props[&quot;port&quot;] = 0;<br>                props[&quot;TypeFilterLevel&quot;] = &quot;Full&quot;;<br><br>                HttpChannel chan = new HttpChannel(props, clientProv, serverProv);   <br>                ChannelServices.RegisterChannel( chan );<br><br>It is working now for the client to server connection.<br><br><br>however, because we do have events/delegation call back from server to client,<br>so when the delegation fired, I am still getting the same error as<br>&quot;Soap Serializer does not support serializing Generic Types&quot;<br><br><br>So it looks like in the event call back, it is default using the soap serializer, is there anyway to set this to BinaryFormatter? thanks.<br><br><br><br>Sat, 04 Feb 2006 07:11:23 Z2006-02-04T07:11:23Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#b7e8f005-940b-4d19-b547-ecd2d546db63http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#b7e8f005-940b-4d19-b547-ecd2d546db63Brownie Pointshttp://social.msdn.microsoft.com/Profile/en-US/?user=Brownie%20PointsSoap Serializer does not support serializing Generic Types.The Binary formatter can handle callbacks and events. Check out the Remoting FAQ <a title="http://www.thinktecture.com/Resources/RemotingFAQ/default.html" href="http://www.thinktecture.com/Resources/RemotingFAQ/default.html">over here</a> for pointers.Thu, 09 Feb 2006 09:00:50 Z2006-02-09T09:00:50Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#4e8a2098-4007-48a3-b6f8-7e29554e44c7http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#4e8a2098-4007-48a3-b6f8-7e29554e44c7xinzhanghttp://social.msdn.microsoft.com/Profile/en-US/?user=xinzhangSoap Serializer does not support serializing Generic Types.Thanks for your reply, I followed the link but no vail.<br> <br> My probelm is in the server to client evnt call back, I am still getting a &quot;Soap Serializer error.&quot;<br> This should not happen, because if you look att the code I provided above, I have already<br> set it to binaryformat in the client code...so how come a soap serializer error pop up?<br> <br> <br> <br> <br> <span id="_ctl0_MainContent_PostFlatView"><span><br></span></span><br>Fri, 10 Feb 2006 04:21:04 Z2006-02-10T04:21:04Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#d7d62207-bc51-412d-8ac2-1d5dbf9a874chttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#d7d62207-bc51-412d-8ac2-1d5dbf9a874cJohn Justice - MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=John%20Justice%20-%20MSFTSoap Serializer does not support serializing Generic Types.<p>Xinzhang, can you include the code for both sides of the wire?  Looking at what you posted, it's not obvious to me what's going wrong.</p> <p>Cheers,</p> <p>JJustice [MSFT]</p>Tue, 14 Feb 2006 21:58:24 Z2006-02-14T21:58:24Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#a571ad08-490e-41b2-afb7-4ec8ec1f3d77http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#a571ad08-490e-41b2-afb7-4ec8ec1f3d77xinzhanghttp://social.msdn.microsoft.com/Profile/en-US/?user=xinzhangSoap Serializer does not support serializing Generic Types.Yeah, Let me post more codes about the configuration.<br>What I am doing here is, I have a remoting server start, also to have the capability for a client to event call back to server, we defined a delegate and an event wrapper as the book &quot;Advanced remoting said&quot;.<br><br>Here is the definition:<br><br>    public interface IFactory <br>    {<br>        IWorker getNewWorker();<br>    }<br><br>     public delegate void PipelineDelegate(RemoteData rdo);<br><br>      public class CallbackPipeline: MarshalByRefObject <br>        {<br>                public delegate void RealLocal(RemoteData commitData);<br><br>                public RealLocal RealocalCall;<br><br>                public void CallForRemote(RemoteData commitData)<br>                {<br>                    realocalCall(commitData);<br>                }   <br><br>                public override object InitializeLifetimeService()<br>                {<br>                    return null;<br>                }<br>    }<br><br>That is basically the interface definition for client and server<br>Wed, 15 Feb 2006 07:36:02 Z2006-02-15T07:36:02Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#362da608-2826-4b3d-8b2f-aafa16b88ad3http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#362da608-2826-4b3d-8b2f-aafa16b88ad3xinzhanghttp://social.msdn.microsoft.com/Profile/en-US/?user=xinzhangSoap Serializer does not support serializing Generic Types.This the configuration in serverside,<br><br>In serverside, we are using a config file and <br>one line:  RemotingConfiguration.Configure(remoting_config_filename) to load up server.<br><br>The config file is :<br>    &lt;system.runtime.remoting&gt;<br>        &lt;application name=&quot;Data.Remoting&quot;&gt;<br>            &lt;lifetime InitialLeaseTime=&quot;5H&quot; /&gt;<br>            &lt;service&gt;<br>                &lt;wellknown mode=&quot;Singleton&quot; type=&quot;Data.Remoting.ImplFactory, Data.Remoting&quot; objectUri=&quot;factory&quot;/&gt;<br>            &lt;/service&gt;<br>            &lt;channels&gt;<br>                &lt;channel ref=&quot;tcp&quot;  port=&quot;8016&quot; displayName=&quot;Factory tcp channel&quot;/&gt;<br>                &lt;channel ref=&quot;http&quot; port=&quot;8015&quot; displayName=&quot;Factory http channel&quot;&gt;<br>                    &lt;serverProviders&gt;<br>                        &lt;provider  ref=&quot;wsdl&quot;/&gt;<br>                        &lt;formatter ref=&quot;binary&quot; typeFilterLevel=&quot;Full&quot;/&gt;<br>                    &lt;/serverProviders&gt;<br>                &lt;/channel&gt;<br>            &lt;/channels&gt;<br>        &lt;/application&gt;<br>    &lt;/system.runtime.remoting&gt;    <br><br>------------------------------------------------------------------------------------------<br><br>In the client side, I am writing a bit codes to configure the remoting channel, which I can re-use for different clients.<br><br><br>public void connect()<br>        {<br>            <br>            try<br>            {<br>                    serverUrl = &quot;http://localhost:8015/factory&quot;;<br><br>                if (ChannelServices.RegisteredChannels.GetLength(0) &gt; 0)<br>                {<br>                    foreach (IChannel channel in ChannelServices.RegisteredChannels)<br>                    {<br>                        ChannelServices.UnregisterChannel(channel);<br>                    }<br>                }<br><br>                // Ref: http://www.thinktecture.com/Resources/RemotingFAQ/Changes2003.html<br>                BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider();<br>                BinaryClientFormatterSinkProvider clientProv = new BinaryClientFormatterSinkProvider();<br><br>                serverProv.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;<br>                <br>                IDictionary props = new Hashtable();<br>                props[&quot;port&quot;] = 0;<br>                props[&quot;TypeFilterLevel&quot;] = &quot;Full&quot;;<br>                 <br>                HttpChannel chan = new HttpChannel(props, clientProv, serverProv);                  <br>                ChannelServices.RegisterChannel( chan );<br><br>                // after remoting is connected, here is the codes to set up the delegation<br>                // for remoting event.<br>                // all the codes below is making it possible for remoting client to get the event call back<br>                remoteFactory = (IFactory) Activator.GetObject(    typeof(IFactory),serverUrl);<br>                worker =  remoteFactory.getNewWorker(); <br>                client    = new CallbackPipeline();<br>                client.realocalCall = new CallbackPipeline.realLocal(this.serverNotify);<br>                worker.cltPipe   = new PipelineDelegate(client.callForRemote);<br>            }        <br>            catch<br>            {<br>                throw;<br>            }<br>   }<br><br><br><br><br><br><br>Wed, 15 Feb 2006 07:45:08 Z2006-02-15T07:45:08Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#90895729-a260-477f-b0fa-b908e13b5815http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#90895729-a260-477f-b0fa-b908e13b5815xinzhanghttp://social.msdn.microsoft.com/Profile/en-US/?user=xinzhangSoap Serializer does not support serializing Generic Types.the last bits of code is in the remoting server side, it is calling the delegate and send the data back to registered client (event call back)<br><br>    private PipelineDelegate pipe;<br>    private void TellRemoteClt(RemoteData commitData)<br>        {<br>            try<br>            {<br><span style="font-weight:bold">                this.pipe( commitData );</span><br>            }<br>            catch(Exception e)<br>            {<br>                logg.Warn(&quot;Exception in call to client delegate:&quot; + e.Message +&quot; at:&quot;+ this.identity);<br>            }<br> <br>        }<br><br>and here is the exception error it happened.<br><br>the RemoteData is a remote data object class with some generic type defined.<br><br>After the client configure, I can send the remote data to the server via remoting, it is no problem. <br><br>However, after the server accept the remote data and submit the change, it also want to<br>tell the registered listening clients, there is one data already changed...<br><br>So the server is sending the remote object back to other clients via TellRemoteClt method and calls a delegate to fire it..<br><br>Then I am getting this soap serializer problem...<br><br>IMHO, there must be somewhere I should explicitly define use BinarySerializing... whereelse though?<br><br><br><br><br><br><br><br>Wed, 15 Feb 2006 07:58:20 Z2006-02-15T07:58:20Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#f7db6219-2900-4c5d-a1f2-583d6a2aead8http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#f7db6219-2900-4c5d-a1f2-583d6a2aead8jristahttp://social.msdn.microsoft.com/Profile/en-US/?user=jristaSoap Serializer does not support serializing Generic Types.<p>Have you tried using a TcpChannel, rather than an HttpChannel? I'm not certain, but I think the HttpChannel will always format certain things with a soap envelope, where as the TcpChannel will always format things with whatever formatter you've specified. I havn't used the HttpChannel much, as I usually use the TcpChannel, so its just a thought.</p>Thu, 23 Feb 2006 21:38:22 Z2006-02-23T21:38:22Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#ce573a28-7284-4f8b-be7a-4e490c061ab7http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#ce573a28-7284-4f8b-be7a-4e490c061ab7Max76http://social.msdn.microsoft.com/Profile/en-US/?user=Max76Soap Serializer does not support serializing Generic Types.<B><A id=_ctl0_MainContent__ctl0_PostForm_ReplyPostedBy href="http://forums.microsoft.com/MSDN/User/Profile.aspx?UserID=78464&amp;SiteID=1"><U><FONT color=#810081>xinzhang</FONT></U></A>, did you solve the problem? Now I have a similar one: http channel, binary formatter, remote call and return type that&nbsp;containes nullables (generics). And get "<U><FONT color=#0000ff>Soap Serializer does not support serializing Generic Types</FONT></U>" error.</B>Mon, 28 Aug 2006 09:18:39 Z2006-08-28T09:18:39Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#26ca4405-1539-4bd9-990a-f008e96963d8http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#26ca4405-1539-4bd9-990a-f008e96963d8xinzhanghttp://social.msdn.microsoft.com/Profile/en-US/?user=xinzhangSoap Serializer does not support serializing Generic Types.I got it working with TCPChannel binary formatter.<br>Tue, 29 Aug 2006 00:35:46 Z2006-08-29T00:35:46Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#f4818a90-e19c-4c2a-8b16-68804c1f63efhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#f4818a90-e19c-4c2a-8b16-68804c1f63efLee Elenbaashttp://social.msdn.microsoft.com/Profile/en-US/?user=Lee%20ElenbaasSoap Serializer does not support serializing Generic Types.I tend to use SOAP serializer instead of Binary since it provides me with easier way to see the content - i just open it using ANY text editore and i can see if all my data passed on correctly or not.<br><br>I don't have this ability in Binary formatter.<br><br>XmlSerializer is NOT an option since it does NOT allow you to custom the serialization in the same way that SOAP and Binary allow using attributes and implementing ISerializable (and i don't like the idea of building my own formatter that will generate the utilize the XmlSerializer)<br><br><br>Is there any tool that enable me to parse/browse the information stored in binary format?<br>Thu, 31 Jan 2008 11:28:18 Z2008-01-31T11:28:18Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#475c75d7-5f0e-4063-a9fb-a68a6b4f92a9http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#475c75d7-5f0e-4063-a9fb-a68a6b4f92a9asdf989http://social.msdn.microsoft.com/Profile/en-US/?user=asdf989Soap Serializer does not support serializing Generic Types.So after 2 years of posts in this thread theres still no good answer.<br><br>I'm like everyone else here. I want the benefits of the Binary Serializer but I want the human readability that XML / Soap gives you.<br><br>XML Serializer is WAY to verbose. I mind as well write my own serializer than use the XML one (which I'm not going to do).<br>It needs to<br><br>1) Save the private/public member (like the binary formatter) (Not the properties which is pointless)<br>2) It needs to perform deep serialization (like the Bin Formatter)<br>3) It needs to be human readable.<br>4) It sholdn't require explicite markup of every member (like XML requires).<br><br>MY GOD. Is there not an xml/ soap serializer that is functionaly equivalent to the Binary Serializer available?<br><br>ANYONE?<br>Wed, 13 Feb 2008 11:55:20 Z2008-02-13T11:55:20Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#b9fc68bb-539f-4a29-bf0b-cbc79e38b577http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#b9fc68bb-539f-4a29-bf0b-cbc79e38b577Mauro Sturarohttp://social.msdn.microsoft.com/Profile/en-US/?user=Mauro%20SturaroSoap Serializer does not support serializing Generic Types.<p>I've searched it for a while, but at last I've build my own from scratch.</p> <p align=left> </p> <p align=left>I't use Reflection to find private field and write it out to an XML format using System.Xml.XmlConvert.</p> <p align=left>So I can convert from previous version saved files using XSLT an a little bit of version indipendent code.</p> <p align=left> </p> <p align=left>I'm sorry but it's too binded with the structure of my application to publish it. But using Reflector an taking a look at the Rotor sources it can be developed it in few weeks.</p> <p align=left>It can't handle all scenarios but it can persist and rebuild my application core object model graph and I can read it with my eyes to find errors and mainpulate it with my code to handle version upgrade and bug fix.</p> <p align=left> </p> <p align=left>Using it I was able to make a deep refactor of my application that was simply impossible using the original Binary Serialization.</p> <p align=left> </p> <p align=left>This is what I think people need from a Binary Serialization framework. An obscure undocumented binary blob simply can't handle all the needs of all the people.</p> <p align=left> </p> <p align=left>I like .NET and I hope that Microsoft people will think about this in the future.<b><font size=1></b></font><b><u><font color="#215dc6" size=1></p></b></u></font> <p align=left><font face=Arial size=2></font> </p>Thu, 14 Feb 2008 22:43:34 Z2008-02-14T22:43:34Zhttp://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#bcee72b1-35b7-431b-8820-a2e03d17d9f1http://social.msdn.microsoft.com/Forums/en-US/netfxremoting/thread/ee4a7a63-290e-432f-bd45-44f4cb7a3467#bcee72b1-35b7-431b-8820-a2e03d17d9f1asdf989http://social.msdn.microsoft.com/Profile/en-US/?user=asdf989Soap Serializer does not support serializing Generic Types.<font style="font-size:20px">Solution!!!</font><br><br>I found an xml serializer for on Source Forge called<br><br>Nxmlserializer<br>http://sourceforge.net/projects/nxmlserializer/<br><br>It does a pretty good job of serializing most objcet graphs and restoring them properly. <br><br>Notes:<br>1) I think I had problems with it not recording enums properly and I was able to very quickly write my own handler for Enums.<br><br>2) It wanted you to use its custom Attributes instead of the standard .Net ones. I once again started modifying it locally so that it would handle the .net attributes.<br><br><br>Give it a try<br><br>Wed, 03 Dec 2008 10:17:56 Z2008-12-03T10:17:56Z