<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Pushing Data From the Server to Silverlight 3 using a Duplex Wcf Service</title>
	<atom:link href="http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/feed/" rel="self" type="application/rss+xml" />
	<link>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/</link>
	<description>Bringing Silverlight to the Enterprise</description>
	<lastBuildDate>Fri, 09 Jul 2010 09:11:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Shah Sachin N.</title>
		<link>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-127</link>
		<dc:creator>Shah Sachin N.</dc:creator>
		<pubDate>Fri, 09 Jul 2010 09:11:46 +0000</pubDate>
		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-127</guid>
		<description>Thanks a mate. I had tried lots of example but I was not able to run any example. I am able to run your sample code without any problems.</description>
		<content:encoded><![CDATA[<p>Thanks a mate. I had tried lots of example but I was not able to run any example. I am able to run your sample code without any problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith</title>
		<link>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-71</link>
		<dc:creator>Keith</dc:creator>
		<pubDate>Thu, 25 Feb 2010 20:52:22 +0000</pubDate>
		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-71</guid>
		<description>Just curios, I must be missing something the others made it through...

In creating the service section you say:

&quot;But  before we can do that we need a DataContract class called LiveDataMessage – this is the simple class that our service will send to Silverlight.&quot;

I&#039;m not seeing where you create that, your not as explicit as you were in everything else so I am getting the impression I&#039;m missing something obvious.

Any help?</description>
		<content:encoded><![CDATA[<p>Just curios, I must be missing something the others made it through&#8230;</p>
<p>In creating the service section you say:</p>
<p>&#8220;But  before we can do that we need a DataContract class called LiveDataMessage – this is the simple class that our service will send to Silverlight.&#8221;</p>
<p>I&#8217;m not seeing where you create that, your not as explicit as you were in everything else so I am getting the impression I&#8217;m missing something obvious.</p>
<p>Any help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-69</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Thu, 14 Jan 2010 14:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-69</guid>
		<description>Just an update on my question above...

I eventually discovered that I had to add  to the web.config as well as [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)] (Allowed may work too) to the service definition in order to get a System.Web.HttpContext.Current that was not null.  However System.Web.HttpContext.Current.Session remained null and it turns out this is always so when using duplexing.  I also found that enabling ASP.NET compatibility slowed my service calls way down (they didn&#039;t even execute for between 8 minutes and over a minute) so I ripped out ASP.NET compatibility (it didn&#039;t get me my session variable anyway).</description>
		<content:encoded><![CDATA[<p>Just an update on my question above&#8230;</p>
<p>I eventually discovered that I had to add  to the web.config as well as [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)] (Allowed may work too) to the service definition in order to get a System.Web.HttpContext.Current that was not null.  However System.Web.HttpContext.Current.Session remained null and it turns out this is always so when using duplexing.  I also found that enabling ASP.NET compatibility slowed my service calls way down (they didn&#8217;t even execute for between 8 minutes and over a minute) so I ripped out ASP.NET compatibility (it didn&#8217;t get me my session variable anyway).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-66</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Mon, 11 Jan 2010 17:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-66</guid>
		<description>Hi Ian.  Thanks for the tutorial.  It&#039;s been a great help.  I was wondering if you would be able to help me figure something out.

In my implementation I&#039;m trying to get something out of System.Web.HttpContext.Current.Session (System.Web.HttpContext.Current.Session[&quot;MyVariable&quot;].ToString()) but when I run the sample I get an exception because System.Web.HttpContext.Current is null.

At first I thought the problem was because of [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)] however I&#039;ve tried PerSession and PerCall with no success.  (I had to modify some things to make those two possible.)

The reason I&#039;m trying to get to the Session is that I&#039;m working with an existing web application and there&#039;s a value I need from there.  Session was accessible using a plain WCF/Silverlight implementation however I&#039;m working on replacing that with a duplexing version because we have calls that take longer than 1 minute and later we will probably be pushing data from the server.

Can you shed any light on why System.Web.HttpContext.Current is null (even when I have changed things to make it PerSession/PerCall)?

Thanks,
Phil</description>
		<content:encoded><![CDATA[<p>Hi Ian.  Thanks for the tutorial.  It&#8217;s been a great help.  I was wondering if you would be able to help me figure something out.</p>
<p>In my implementation I&#8217;m trying to get something out of System.Web.HttpContext.Current.Session (System.Web.HttpContext.Current.Session["MyVariable"].ToString()) but when I run the sample I get an exception because System.Web.HttpContext.Current is null.</p>
<p>At first I thought the problem was because of [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)] however I&#8217;ve tried PerSession and PerCall with no success.  (I had to modify some things to make those two possible.)</p>
<p>The reason I&#8217;m trying to get to the Session is that I&#8217;m working with an existing web application and there&#8217;s a value I need from there.  Session was accessible using a plain WCF/Silverlight implementation however I&#8217;m working on replacing that with a duplexing version because we have calls that take longer than 1 minute and later we will probably be pushing data from the server.</p>
<p>Can you shed any light on why System.Web.HttpContext.Current is null (even when I have changed things to make it PerSession/PerCall)?</p>
<p>Thanks,<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luca</title>
		<link>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-55</link>
		<dc:creator>Luca</dc:creator>
		<pubDate>Sun, 18 Oct 2009 16:34:31 +0000</pubDate>
		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-55</guid>
		<description>Nevermind, I just added the reference, I figured this would have already been included. :)</description>
		<content:encoded><![CDATA[<p>Nevermind, I just added the reference, I figured this would have already been included. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luca</title>
		<link>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-54</link>
		<dc:creator>Luca</dc:creator>
		<pubDate>Sun, 18 Oct 2009 16:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-54</guid>
		<description>From the original MIX code I also Updated the reference and noted that it then failed to build as it added the following to the Reference:

public System.Net.CookieContainer CookieContainer {

Which throws up a type namespace error. 
How do I fix this please?</description>
		<content:encoded><![CDATA[<p>From the original MIX code I also Updated the reference and noted that it then failed to build as it added the following to the Reference:</p>
<p>public System.Net.CookieContainer CookieContainer {</p>
<p>Which throws up a type namespace error.<br />
How do I fix this please?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-53</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Tue, 13 Oct 2009 20:19:36 +0000</pubDate>
		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-53</guid>
		<description>Good work, Great samples and Great documentation, exactly what I was looking for.

Thanks from me and my colleges!</description>
		<content:encoded><![CDATA[<p>Good work, Great samples and Great documentation, exactly what I was looking for.</p>
<p>Thanks from me and my colleges!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miguel Hau</title>
		<link>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-52</link>
		<dc:creator>Miguel Hau</dc:creator>
		<pubDate>Tue, 13 Oct 2009 17:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-52</guid>
		<description>excellent and simple!  great way to simplifying the wcf duplex service for silverlight.</description>
		<content:encoded><![CDATA[<p>excellent and simple!  great way to simplifying the wcf duplex service for silverlight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-44</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 21 Sep 2009 19:55:04 +0000</pubDate>
		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-44</guid>
		<description>I&#039;m able to run the sample from visual studio but when i publish as an application to the local IIS 6 server no data comes down. (Connect / disconnect features work, just no data)

Is there a magic setting that i need to look at?</description>
		<content:encoded><![CDATA[<p>I&#8217;m able to run the sample from visual studio but when i publish as an application to the local IIS 6 server no data comes down. (Connect / disconnect features work, just no data)</p>
<p>Is there a magic setting that i need to look at?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Jack</title>
		<link>http://silverlightforbusiness.net/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-41</link>
		<dc:creator>Joe Jack</dc:creator>
		<pubDate>Thu, 17 Sep 2009 14:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://silverlightforbusiness.wordpress.com/2009/06/23/pushing-data-from-the-server-to-silverlight-3-using-a-duplex-wcf-service/#comment-41</guid>
		<description>bob,

I ran into the same issue. I&#039;d bet that it is because you copied the contents of the LiveDataService.svc file right into the text file you added. The quotes didnt copy right for me, so just deleting the quotes and re-adding them resolved this issue and I can now add the service reference fine.
Hope this helps.</description>
		<content:encoded><![CDATA[<p>bob,</p>
<p>I ran into the same issue. I&#8217;d bet that it is because you copied the contents of the LiveDataService.svc file right into the text file you added. The quotes didnt copy right for me, so just deleting the quotes and re-adding them resolved this issue and I can now add the service reference fine.<br />
Hope this helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
