<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.silverlight.net/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>Silverlight Tip of the Day #12 - Full Implementation of a Silverlight Policy Server.</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx</link><description>Before a Silverlight application can connect to a server it must first successfully connect to a policy server on that machine in order to proceed with the connection. In this tip I will take you through every step you need to create and run your own</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>re: Silverlight Tip of the Day #12 - Full Implementation of a Silverlight Policy Server.</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#300202</link><pubDate>Fri, 09 Oct 2009 10:54:16 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:300202</guid><dc:creator>nccsbim071</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Mr Mikw Snow&lt;/p&gt;
&lt;p&gt;I want to use sockets to develop an online game, where I expect to create a socket server and number of client will connect to the server and get data from the server.&lt;/p&gt;
&lt;p&gt;I do not want to use polling.&lt;/p&gt;
&lt;p&gt;But as i search the web i find using socket server is not a solution, since Firewall, proxies block the port to communicate with the client and server sockets. And the other problem is i want to host the web on the internet on some asp.net web hosting provider. How am i supposed to start the server on the web host server.&lt;/p&gt;
&lt;p&gt;If there are so many problems with the socket server, why is there a socket server available in .net.&lt;/p&gt;
&lt;p&gt;What will be my feasible solution.&lt;/p&gt;
&lt;p&gt;Please suggest what to do.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=300202" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #12 - Full Implementation of a Silverlight Policy Server.</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#292495</link><pubDate>Fri, 25 Sep 2009 09:22:43 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:292495</guid><dc:creator>avtar</dc:creator><description>&lt;p&gt;How to get port number from clientaccespolciy in silverlight code?&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=292495" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #12 - Full Implementation of a Silverlight Policy Server.</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#248895</link><pubDate>Mon, 13 Jul 2009 22:07:30 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:248895</guid><dc:creator>mike.snow</dc:creator><description>&lt;p&gt;Yes, a naming convention we use for class variables.&lt;/p&gt;
&lt;p&gt;Thanks for the bug report.&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=248895" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #12 - Full Implementation of a Silverlight Policy Server.</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#240876</link><pubDate>Thu, 02 Jul 2009 16:02:26 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:240876</guid><dc:creator>goberman</dc:creator><description>&lt;p&gt;Yes, there is a bug in this code: OnReceive should check for 0 _received. 0 indicates that socket is closed. Something like below:&lt;/p&gt;
&lt;p&gt;// socket closed&lt;/p&gt;
&lt;p&gt;if (_received == 0)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp;_connection.Close();&lt;/p&gt;
&lt;p&gt; &amp;nbsp;return;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;It is a shame Microsoft cannot just package a policy server implementation in the Silverlight installation as a tool and has to use these blogs to show how to write one...&lt;/p&gt;
&lt;p&gt;And what is the deal with '_' before field names? Some new naming convention?&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=240876" width="1" height="1"&gt;</description></item><item><title>SocketsLight - Silverlight Sockets Framework</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#225747</link><pubDate>Thu, 28 May 2009 10:49:09 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:225747</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;1. Introduction Currently Silverlight supports two ways of duplex communication: sockets and WCF polling&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=225747" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #12 - Full Implementation of a Silverlight Policy Server.</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#159564</link><pubDate>Mon, 12 Jan 2009 18:46:55 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:159564</guid><dc:creator>mike.snow</dc:creator><description>&lt;p&gt;I have forward your comments on to the SL team and we'll see if we can get a repro. I'll let you know what we find.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=159564" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #12 - Full Implementation of a Silverlight Policy Server.</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#159454</link><pubDate>Mon, 12 Jan 2009 14:12:16 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:159454</guid><dc:creator>VyvIT</dc:creator><description>&lt;p&gt;yes, it stays at 90%&lt;/p&gt;
&lt;p&gt;what I figured out is that if i connect and disconnect for the first time, cpu stays on ~50% and if i do it one more time, cpu goes up to 90% and stays stuck. &lt;/p&gt;
&lt;p&gt;F.e.: &lt;/p&gt;
&lt;p&gt;1. CPU 0%&lt;/p&gt;
&lt;p&gt;2. I connect to the server and disconnect (CPU 50%)&lt;/p&gt;
&lt;p&gt;3. I connect to the server and disconnect (CPU 90%)&lt;/p&gt;
&lt;p&gt;But if:&lt;/p&gt;
&lt;p&gt;1. CPU 0%&lt;/p&gt;
&lt;p&gt;2. I connect to the server, get the policy file and disconnect (CPU 0%)&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;n. I connect to the server, get the policy file and disconnect (CPU 0%)&lt;/p&gt;
&lt;p&gt;So, if one client looses connection without getting the policyfile, my server CPU goes up to 50%, and if connection is lost one more time, my CPU is always on 90%.&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=159454" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #12 - Full Implementation of a Silverlight Policy Server.</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#158495</link><pubDate>Fri, 09 Jan 2009 18:01:22 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:158495</guid><dc:creator>mike.snow</dc:creator><description>&lt;p&gt;Does it stay stuck at 90%? &lt;/p&gt;
&lt;p&gt;Also, does it happen if you do not &amp;quot;quickly&amp;quot; connect and disconnect? &lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=158495" width="1" height="1"&gt;</description></item><item><title>re: Silverlight Tip of the Day #12 - Full Implementation of a Silverlight Policy Server.</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#158389</link><pubDate>Fri, 09 Jan 2009 14:54:58 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:158389</guid><dc:creator>VyvIT</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;I have some trouble with this implementation and I don't know how to debug it. Maybe you could help?&lt;/p&gt;
&lt;p&gt;Problem: After starting this policy server, CPU usage goes up to 90%.&lt;/p&gt;
&lt;p&gt;To reproduce the problem follow these steps:&lt;/p&gt;
&lt;p&gt;1. start the server&lt;/p&gt;
&lt;p&gt;2. connect and disconnect quickly a 2-3 times to this server without getting the policy file and the CPU will go up as I mentioned above.&lt;/p&gt;
&lt;p&gt;As a TCP client for testing I use Hercules (&lt;a rel="nofollow" target="_new" href="http://www.hw-group.com/products/hercules/index_en.html"&gt;www.hw-group.com/.../index_en.html&lt;/a&gt;) to connect to the policy server (TCP Client tab).&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=158389" width="1" height="1"&gt;</description></item><item><title>presentão de Ano Novo: dúzias de dicas e tutoriais de Silverlight ;)</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#155391</link><pubDate>Sat, 03 Jan 2009 11:25:44 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:155391</guid><dc:creator>o UAU nosso de cada dia</dc:creator><description>&lt;p&gt;essa lista eu copiei desse blog b&amp;#225;rbaro (acompanhe por RSS voc&amp;#234; tamb&amp;#233;m): uma lista de dicas super &amp;#250;teis&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=155391" width="1" height="1"&gt;</description></item><item><title>Silverlight Tips of the Day - Summary Outline</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#155147</link><pubDate>Fri, 02 Jan 2009 22:57:02 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:155147</guid><dc:creator>Silverlight Tips of the Day - Blog by Mike Snow</dc:creator><description>&lt;p&gt;The purpose of this post is to create an outline summary all the blogs from my Silverlight tips of the&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=155147" width="1" height="1"&gt;</description></item><item><title>re: Tip of the Day #12 - Full Implementation of a Silverlight Policy Server.</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#67003</link><pubDate>Tue, 01 Jul 2008 15:14:28 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:67003</guid><dc:creator>chrisaswain</dc:creator><description>&lt;p&gt;This saved me a lot of trouble. &amp;nbsp;Thanks!&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=67003" width="1" height="1"&gt;</description></item><item><title>Silverlight news for June 30, 2008</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#66444</link><pubDate>Mon, 30 Jun 2008 07:41:22 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:66444</guid><dc:creator>Silverlight news for June 30, 2008</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Silverlight news for June 30, 2008&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=66444" width="1" height="1"&gt;</description></item><item><title>Silverlight Cream for June 27, 2008 -- #311</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#66072</link><pubDate>Fri, 27 Jun 2008 22:12:35 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:66072</guid><dc:creator>Community Blogs</dc:creator><description>&lt;p&gt;Jaime Rodriguez on DeepZoom, Pete Brown on on Publish/Subscribe pattern in SL, Shawn Wildermuth on XAML&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=66072" width="1" height="1"&gt;</description></item><item><title>Full Implementation of a Silverlight Policy Server.</title><link>http://blogs.silverlight.net/blogs/msnow/archive/2008/06/26/full-implementation-of-a-silverlight-policy-server.aspx#65713</link><pubDate>Thu, 26 Jun 2008 23:15:36 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:65713</guid><dc:creator>Microsoft Weblogs</dc:creator><description>&lt;p&gt;In Silverlight Beta 1 you could only use sockets to connect to the same host the Silverlight application&lt;/p&gt;
&lt;img src="http://blogs.silverlight.net/aggbug.aspx?PostID=65713" width="1" height="1"&gt;</description></item></channel></rss>