<?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"
	>
<channel>
	<title>Comments on: Silverlight Feedbooks RSS Browser - Part 1</title>
	<atom:link href="http://blog.bluefire.tv/?feed=rss2&#038;p=49" rel="self" type="application/rss+xml" />
	<link>http://blog.bluefire.tv/?p=49</link>
	<description>Tasty bytes on rich media</description>
	<pubDate>Wed,  8 Sep 2010 12:30:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Patrick</title>
		<link>http://blog.bluefire.tv/?p=49#comment-7878</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Thu, 22 Jan 2009 19:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bluefire.tv/?p=49#comment-7878</guid>
		<description>Thank you for this comment, Phil.  Any good Silverlight data is appreciated!  I will check out the WCF services for future posts. -Patrick.</description>
		<content:encoded><![CDATA[<p>Thank you for this comment, Phil.  Any good Silverlight data is appreciated!  I will check out the WCF services for future posts. -Patrick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Steel</title>
		<link>http://blog.bluefire.tv/?p=49#comment-7874</link>
		<dc:creator>Phil Steel</dc:creator>
		<pubDate>Thu, 22 Jan 2009 09:28:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bluefire.tv/?p=49#comment-7874</guid>
		<description>Hi Patrick

I had an issue with the Silverlight WebClient class, in that a security error is thrown if you are inside a corporate network and your browser uses a proxy server address to connect to the internet.(in IE, tools &#62; Internet options &#62; Connections &#62; LAN Connection). You'll notice that because Silverlight is a cut down version of the CLR, there is no 'Proxy' property you can set on the WebClient class.

The work around: instead of using the Silverlight WebClient class, I had to create a WCF service in the hosting ASP.NET website and use the normal WebClient class in System.Net, which enabled me to set the Proxy address:

[OperationContract]
public string GetRssFeedPosts(string url, string proxyAddress) {
WebClient client = new WebClient();
if(!String.IsNullOrEmpty(proxyAddress))
  client.Proxy = new WebProxy(proxyAddress);
return client.DownloadString(url);
}

Phil</description>
		<content:encoded><![CDATA[<p>Hi Patrick</p>
<p>I had an issue with the Silverlight WebClient class, in that a security error is thrown if you are inside a corporate network and your browser uses a proxy server address to connect to the internet.(in IE, tools &gt; Internet options &gt; Connections &gt; LAN Connection). You&#8217;ll notice that because Silverlight is a cut down version of the CLR, there is no &#8216;Proxy&#8217; property you can set on the WebClient class.</p>
<p>The work around: instead of using the Silverlight WebClient class, I had to create a WCF service in the hosting ASP.NET website and use the normal WebClient class in System.Net, which enabled me to set the Proxy address:</p>
<p>[OperationContract]<br />
public string GetRssFeedPosts(string url, string proxyAddress) {<br />
WebClient client = new WebClient();<br />
if(!String.IsNullOrEmpty(proxyAddress))<br />
  client.Proxy = new WebProxy(proxyAddress);<br />
return client.DownloadString(url);<br />
}</p>
<p>Phil</p>
]]></content:encoded>
	</item>
</channel>
</rss>
