<?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>Jigar Mehta's Blog : Remoting</title><link>http://blogs.msdn.com/jigarme/archive/tags/Remoting/default.aspx</link><description>Tags: Remoting</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Passing XmlDocument object as argument while using .NET Remoting</title><link>http://blogs.msdn.com/jigarme/archive/2007/03/21/passing-xmldocument-object-as-argument-while-using-net-remoting.aspx</link><pubDate>Wed, 21 Mar 2007 20:56:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1926935</guid><dc:creator>Jigar Mehta</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jigarme/comments/1926935.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jigarme/commentrss.aspx?PostID=1926935</wfw:commentRss><description>&lt;p&gt;Just got a problem where developer was passing the object of XmlDocument in a remoted object's method. And he was getting error,&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Errror&lt;/strong&gt; : {"Type 'System.Xml.XmlDocument' in Assembly 'System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable."} &lt;/p&gt; &lt;p&gt;And above behavior is expected because XmlDocument is already containing XML data which can not be serialized once again. The workaround to the problem is, we should use "string" as argument to pass the InnerXML between the remoting client and host, and generate the XmlDocument once again on the server side. That can solve the issue.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1926935" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jigarme/archive/tags/Remoting/default.aspx">Remoting</category></item><item><title>System.Runtime.Remoting Schema not found.</title><link>http://blogs.msdn.com/jigarme/archive/2006/11/28/system-runtime-remoting-schema-not-found.aspx</link><pubDate>Tue, 28 Nov 2006 17:39:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1165766</guid><dc:creator>Jigar Mehta</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/jigarme/comments/1165766.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jigarme/commentrss.aspx?PostID=1165766</wfw:commentRss><description>&lt;p&gt;I just had a case where customer wanted to validate the XML schema for .NET Remoting configuration files at runtime. He wanted to store the configuration parameters in database and wanted to generate the XML settings at runtime, so, after generating the schema he wanted to validate the XML text. So, for validating the XML file, he wanted the System.Runtime.Remoting&amp;nbsp;schema definition. Generally the schema definitions for various config options are placed at,&lt;/p&gt; &lt;p&gt;C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas\DotNetConfig.xsd&lt;/p&gt; &lt;p&gt;But, especially for .NET Remoting configuration, there is no schema definition stored. The tag is empty.&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;So, I tried finding the valid schema elements for System.Runtime.Remoting and&amp;nbsp;I found it at,&lt;/p&gt; &lt;p&gt;&lt;a href="http://msdn2.microsoft.com/en-us/library/z415cf9a.aspx"&gt;http://msdn2.microsoft.com/en-us/library/z415cf9a.aspx&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;After that, I had to generate the schema definition. This can be done through Visual Studio 2005, New-&amp;gt;New File-&amp;gt;Schema file, but while searching a bit, could find a post on Simon's blog where he also faced the same issue and generated the schema definition. So, downloaded the file from his blog at,&lt;/p&gt; &lt;p&gt;&lt;a href="http://simonchapman.blogspot.com/2006/09/net-remoting-config-schema.html"&gt;http://simonchapman.blogspot.com/2006/09/net-remoting-config-schema.html&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;In the next version of visual studio, this should be fixed, though!!&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1165766" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jigarme/archive/tags/Remoting/default.aspx">Remoting</category></item></channel></rss>