<?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 on: C# &#8211; &#8220;Type is not resolved for member&#8221; SerializationException in Connection.get_LocalIP() RESOLVED!</title>
	<atom:link href="http://finite.mikeandcorinne.com/2010/03/c-type-is-not-resolved-for-member-serializationexception-in-connection-get_localip-resolved/feed/" rel="self" type="application/rss+xml" />
	<link>http://finite.mikeandcorinne.com/2010/03/c-type-is-not-resolved-for-member-serializationexception-in-connection-get_localip-resolved/</link>
	<description>Mike&#039;s thoughts on programming and tech</description>
	<lastBuildDate>Tue, 16 Mar 2010 23:25:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: jmorris</title>
		<link>http://finite.mikeandcorinne.com/2010/03/c-type-is-not-resolved-for-member-serializationexception-in-connection-get_localip-resolved/comment-page-1/#comment-15</link>
		<dc:creator>jmorris</dc:creator>
		<pubDate>Tue, 16 Mar 2010 23:25:13 +0000</pubDate>
		<guid isPermaLink="false">http://finite.mikeandcorinne.com/2010/03/c-type-is-not-resolved-for-member-serializationexception-in-connection-get_localip-resolved/#comment-15</guid>
		<description>Funny, I just ran into this. It actually happens when you assign the IPrincipal implementation to the Thread.CurrentPrincipal property. Setting the Context.User field is fine, however. It also only failed in my case when I called the Page.ClientScript.GetCallbackEventReference method!

I tried your suggestion with the ComVisible and deriving from MarshalByRefObject and then ran into trouble with serialization/deserialization using the DataContractJsonSerializer. I stopped short there and just removed the Thread.CurrentPrincipal = principal code, since this is a cassini specific error and I&#039;ll be on IIS next week. 

-Jeff</description>
		<content:encoded><![CDATA[<p>Funny, I just ran into this. It actually happens when you assign the IPrincipal implementation to the Thread.CurrentPrincipal property. Setting the Context.User field is fine, however. It also only failed in my case when I called the Page.ClientScript.GetCallbackEventReference method!</p>
<p>I tried your suggestion with the ComVisible and deriving from MarshalByRefObject and then ran into trouble with serialization/deserialization using the DataContractJsonSerializer. I stopped short there and just removed the Thread.CurrentPrincipal = principal code, since this is a cassini specific error and I&#8217;ll be on IIS next week. </p>
<p>-Jeff</p>
]]></content:encoded>
	</item>
</channel>
</rss>
