<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments for קוצים של פחד</title>
	<atom:link href="http://gpgemini.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://gpgemini.com</link>
	<description>אומרים שבבוקר הכל מסתדר, זה אותו הסיוט רק עכשיו אתה ער</description>
	<pubDate>Sat, 22 Nov 2008 10:40:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Serialization With .Net Remoting - Chronicles Of A Solution by Micah</title>
		<link>http://gpgemini.com/2007/12/28/serialization-with-net-remoting-chronicles-of-a-solution/#comment-14</link>
		<dc:creator>Micah</dc:creator>
		<pubDate>Fri, 01 Aug 2008 17:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://gpgemini.com/2007/12/28/serialization-with-net-remoting-chronicles-of-a-solution/#comment-14</guid>
		<description>' One more try, had an issue with html special characters...

‘ Another possible fix for the serialization/remoting issue.
‘ Has NOT been tested extensively, but appears to work so far.
‘ Place this method in all your custom classes that inherit
‘ from MarshalByRefObject that you intend to serialize.

	&#60;Runtime.Serialization.OnSerializing()&#62; _
	Private Sub OnSerializing(ByVal context As  _
	   StreamingContext)
		Dim MethodInfo As System.Reflection.MethodInfo

		' Use reflection to access internal 
		' MarshalByRefObject method __ResetServerIdentity.
		MethodInfo = Me.GetType.GetMethod _
		 ("__ResetServerIdentity", BindingFlags.Instance _
		  Or BindingFlags.NonPublic)
		If MethodInfo IsNot Nothing Then
			Try
				' Calling the __ResetServerIdentity method
				' will set the remoting identity to Nothing.
				MethodInfo.Invoke(Me, Nothing)
			Catch ex As Exception
				Debug.WriteLine("ResetServerIdentity failure. " _
				 &#38; ex.Message)
			End Try
		End If

	End Sub</description>
		<content:encoded><![CDATA[<p>&#8216; One more try, had an issue with html special characters&#8230;</p>
<p>‘ Another possible fix for the serialization/remoting issue.<br />
‘ Has NOT been tested extensively, but appears to work so far.<br />
‘ Place this method in all your custom classes that inherit<br />
‘ from MarshalByRefObject that you intend to serialize.</p>
<p>	&lt;Runtime.Serialization.OnSerializing()&gt; _<br />
	Private Sub OnSerializing(ByVal context As  _<br />
	   StreamingContext)<br />
		Dim MethodInfo As System.Reflection.MethodInfo</p>
<p>		&#8216; Use reflection to access internal<br />
		&#8216; MarshalByRefObject method __ResetServerIdentity.<br />
		MethodInfo = Me.GetType.GetMethod _<br />
		 (&#8221;__ResetServerIdentity&#8221;, BindingFlags.Instance _<br />
		  Or BindingFlags.NonPublic)<br />
		If MethodInfo IsNot Nothing Then<br />
			Try<br />
				&#8216; Calling the __ResetServerIdentity method<br />
				&#8216; will set the remoting identity to Nothing.<br />
				MethodInfo.Invoke(Me, Nothing)<br />
			Catch ex As Exception<br />
				Debug.WriteLine(&#8221;ResetServerIdentity failure. &#8221; _<br />
				 &amp; ex.Message)<br />
			End Try<br />
		End If</p>
<p>	End Sub</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Serialization With .Net Remoting - Chronicles Of A Solution by gpgemini</title>
		<link>http://gpgemini.com/2007/12/28/serialization-with-net-remoting-chronicles-of-a-solution/#comment-11</link>
		<dc:creator>gpgemini</dc:creator>
		<pubDate>Fri, 23 May 2008 13:01:39 +0000</pubDate>
		<guid isPermaLink="false">http://gpgemini.com/2007/12/28/serialization-with-net-remoting-chronicles-of-a-solution/#comment-11</guid>
		<description>Hi Antonio,

I'm not familiar with IMessageFormatter, also if you are not getting the "ServerIdentity not serializable" error than it might not be the same problem, the solution above assumes you are performing your own serialization (i.e. creating the Serializer).
You should pass your ISerializationSurrogate when creating the serializer. Read about ISerializationSurrogate to see how.

Guy.</description>
		<content:encoded><![CDATA[<p>Hi Antonio,</p>
<p>I&#8217;m not familiar with IMessageFormatter, also if you are not getting the &#8220;ServerIdentity not serializable&#8221; error than it might not be the same problem, the solution above assumes you are performing your own serialization (i.e. creating the Serializer).<br />
You should pass your ISerializationSurrogate when creating the serializer. Read about ISerializationSurrogate to see how.</p>
<p>Guy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Serialization With .Net Remoting - Chronicles Of A Solution by Antonio Dias</title>
		<link>http://gpgemini.com/2007/12/28/serialization-with-net-remoting-chronicles-of-a-solution/#comment-10</link>
		<dc:creator>Antonio Dias</dc:creator>
		<pubDate>Fri, 23 May 2008 10:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://gpgemini.com/2007/12/28/serialization-with-net-remoting-chronicles-of-a-solution/#comment-10</guid>
		<description>Hi,

i've come across the serialization &#38; remoting problem when trying to use remoting to send a Message (with a very simple object in the body) to a MessageQueue. The remoting object is published in a windows service as well as the MessageQueue.

The problem arises when trying to send the Message to the MessageQueue using the BinaryMessageFormatter. With the XmlMessageFormatter the windows service just crashes :) (although no exception is generated )

After reading this article my only problem is in the first 3 steps. I can't figure how to do it. 
I've created a class that implements IMessageFormatter but i don't know how to "Set the surrogate in your serialization mechanism to override ServerIdentity’s serialization."?

Any help will be very much appreciated.
Thank you</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>i&#8217;ve come across the serialization &amp; remoting problem when trying to use remoting to send a Message (with a very simple object in the body) to a MessageQueue. The remoting object is published in a windows service as well as the MessageQueue.</p>
<p>The problem arises when trying to send the Message to the MessageQueue using the BinaryMessageFormatter. With the XmlMessageFormatter the windows service just crashes :) (although no exception is generated )</p>
<p>After reading this article my only problem is in the first 3 steps. I can&#8217;t figure how to do it.<br />
I&#8217;ve created a class that implements IMessageFormatter but i don&#8217;t know how to &#8220;Set the surrogate in your serialization mechanism to override ServerIdentity’s serialization.&#8221;?</p>
<p>Any help will be very much appreciated.<br />
Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on גיבוי מלא לאימיילים by OUCH</title>
		<link>http://gpgemini.com/2007/09/25/%d7%92%d7%99%d7%91%d7%95%d7%99-%d7%9e%d7%9c%d7%90-%d7%9c%d7%90%d7%99%d7%9e%d7%99%d7%99%d7%9c%d7%99%d7%9d/#comment-4</link>
		<dc:creator>OUCH</dc:creator>
		<pubDate>Mon, 22 Oct 2007 16:02:46 +0000</pubDate>
		<guid isPermaLink="false">http://gpgemini.com/2007/09/25/%d7%92%d7%99%d7%91%d7%95%d7%99-%d7%9e%d7%9c%d7%90-%d7%9c%d7%90%d7%99%d7%9e%d7%99%d7%99%d7%9c%d7%99%d7%9d/#comment-4</guid>
		<description>כמובן שנתקלתי בפוסט הזה רק אחרי שעה של ניסיונות גיבוי (מפגרים למדי). בכל מקרה, תודה!</description>
		<content:encoded><![CDATA[<p>כמובן שנתקלתי בפוסט הזה רק אחרי שעה של ניסיונות גיבוי (מפגרים למדי). בכל מקרה, תודה!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
