<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Network Class Library Team (System.Net) - All Comments</title><link>http://blogs.msdn.com/b/ncl/</link><description /><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: End-to-end connectivity with NAT traversal</title><link>http://blogs.msdn.com/b/ncl/archive/2009/07/27/end-to-end-connectivity-with-nat-traversal-.aspx#10358926</link><pubDate>Thu, 11 Oct 2012 22:25:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10358926</guid><dc:creator>Thank you</dc:creator><description>&lt;p&gt;Yes, great that MS and the .NET team have enabled simple direct connection of clients across the internet.&lt;/p&gt;
&lt;p&gt;This has saved us a load of trouble with a remote control project.&lt;/p&gt;
&lt;p&gt;Well done.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10358926" width="1" height="1"&gt;</description></item><item><title>re: New Picture Hunt Silverlight Socket Sample</title><link>http://blogs.msdn.com/b/ncl/archive/2011/04/28/new-silverlight-socket-sample.aspx#10162322</link><pubDate>Mon, 09 May 2011 03:07:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10162322</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Thanks so much for this - it was extremely helpful, and helped me solve a problem I&amp;#39;d been struggling with for days!&lt;/p&gt;
&lt;p&gt;Just wondering, any chance you (or someone else) could post something about hosting a socket service on Windows Azure? This seems to have special requirements, so it would be good to get some ideas on how to do this.&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10162322" width="1" height="1"&gt;</description></item><item><title>re: How to troubleshoot your System.Net code</title><link>http://blogs.msdn.com/b/ncl/archive/2008/07/25/how-to-troubleshoot-your-system-net-code.aspx#10138300</link><pubDate>Tue, 08 Mar 2011 21:02:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10138300</guid><dc:creator>Mariya Atanasova [NCL]</dc:creator><description>&lt;p&gt;// Get the object used to communicate with the server.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; string filename = &amp;quot;&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; FtpWebRequest request = (FtpWebRequest)WebRequest.Create(ftppath /filename);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; //request.Method = WebRequestMethods.Ftp.UploadFile;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.Method = WebRequestMethods.Ftp.AppendFile;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; // This example assumes the FTP site uses anonymous logon.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; //request.Credentials = new NetworkCredential(username,password);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.UsePassive = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.UseBinary = true;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.KeepAlive = false;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Copy the contents of the file to the request stream.&lt;/p&gt;
&lt;p&gt;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; string path = HTTPDatasheetPath()/filename;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebRequest req = WebRequest.Create(path);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; WebResponse response = req.GetResponse();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Stream _FileStream = response.GetResponseStream();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; byte[] _Buffer = null;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; // attach filestream to binary reader&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.IO.BinaryReader _BinaryReader = new System.IO.BinaryReader(_FileStream);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; // get total byte length of the file&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; //long _TotalBytes = _FileStream.Read(_Buffer, 0, _Buffer.Length); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//new System.IO.FileInfo(path).Length;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; long _TotalBytes = (long)response.ContentLength;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; // read entire file into buffer&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; _Buffer = _BinaryReader.ReadBytes((Int32)_TotalBytes);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; // close file reader&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; request.ContentLength = _Buffer.Length;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Stream requestStream = request.GetRequestStream();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestStream.Write(_Buffer, 0, _Buffer.Length);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; requestStream.Close();&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10138300" width="1" height="1"&gt;</description></item><item><title>re: Silverlight 4 Socket Policy Changes</title><link>http://blogs.msdn.com/b/ncl/archive/2010/04/15/silverlight-4-socket-policy-changes.aspx#10061495</link><pubDate>Tue, 14 Sep 2010 00:28:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10061495</guid><dc:creator>Aaron Oneal</dc:creator><description>&lt;p&gt;Josh: Sorry, not currently, but elevated listener support is a feature we&amp;#39;re tracking.&lt;/p&gt;
&lt;p&gt;Mai: That depends not on Silverlight but on whether the ISPs your clients use route multicast data. Most providers today do not route it outside of their own networks (across the Internet). Keep in mind too that if users are behind a corporate firewall then UDP is not likely to get through. Typical video conferencing applications that connect everywhere have to rely on a variety of fallback protocols that make trade offs between connectivity and performance.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10061495" width="1" height="1"&gt;</description></item><item><title>re: Silverlight 4 Socket Policy Changes</title><link>http://blogs.msdn.com/b/ncl/archive/2010/04/15/silverlight-4-socket-policy-changes.aspx#10061234</link><pubDate>Mon, 13 Sep 2010 15:10:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10061234</guid><dc:creator>Mai</dc:creator><description>&lt;p&gt;plz i want to know if i this notes help me to make a video confernce application using udp multicast over the intenet !!!on local lan it works perfectly i want to know if i could do it over the intenet!! plz i want the answer!!!!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10061234" width="1" height="1"&gt;</description></item><item><title>re: System.Uri FAQ</title><link>http://blogs.msdn.com/b/ncl/archive/2010/02/23/system-uri-f-a-q.aspx#10038832</link><pubDate>Thu, 15 Jul 2010 20:54:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10038832</guid><dc:creator>Tratcher</dc:creator><description>&lt;p&gt;Zak, this is a known issue. &amp;nbsp;See the following Connect entry for more information:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="https://connect.microsoft.com/VisualStudio/feedback/details/386695/system-uri-incorrectly-strips-trailing-dots?wa=wsignin1.0#tabs"&gt;connect.microsoft.com/.../system-uri-incorrectly-strips-trailing-dots&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10038832" width="1" height="1"&gt;</description></item><item><title>re: System.Uri FAQ</title><link>http://blogs.msdn.com/b/ncl/archive/2010/02/23/system-uri-f-a-q.aspx#10038497</link><pubDate>Thu, 15 Jul 2010 08:51:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10038497</guid><dc:creator>zak</dc:creator><description>&lt;p&gt;zak&lt;/p&gt;
&lt;p&gt;Can I prevent implicit Uri cleanup? For instance, this:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; WebRequest wr = HttpWebRequest.Create(&amp;quot;&lt;a rel="nofollow" target="_new" href="http://foo.com/path"&gt;http://foo.com/path&lt;/a&gt; path./uri.uri&amp;quot;);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Console.WriteLine(wr.RequestUri);&lt;/p&gt;
&lt;p&gt;results in&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &lt;a rel="nofollow" target="_new" href="http://foo.com/path"&gt;http://foo.com/path&lt;/a&gt; path/uri.uri&lt;/p&gt;
&lt;p&gt;The dot just before the slash has been removed. In my opinion this is a bug, and doesn&amp;#39;t conform to the behavior indicated by the msdn URI class documentation. Is there a workaround?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10038497" width="1" height="1"&gt;</description></item><item><title>re: What's new in System.Net.Mail</title><link>http://blogs.msdn.com/b/ncl/archive/2009/08/06/what-s-new-in-system-net-mail.aspx#10021080</link><pubDate>Mon, 07 Jun 2010 17:31:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10021080</guid><dc:creator>Aaron Oneal</dc:creator><description>&lt;p&gt;QUIT should be sent when Dispose is called. Can you confirm whether you called Dispose?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10021080" width="1" height="1"&gt;</description></item><item><title>re: What's new in System.Net.Mail</title><link>http://blogs.msdn.com/b/ncl/archive/2009/08/06/what-s-new-in-system-net-mail.aspx#10020795</link><pubDate>Mon, 07 Jun 2010 10:41:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10020795</guid><dc:creator>Chris Wright</dc:creator><description>&lt;p&gt;I commented on this bog post last year asking about if the SmtpClient in .NET 4.0 would send the QUIT command when it is done sending a mail message and you said that in the final release of .NET 4.0 this should be sorted. I tested it the other day though and it looks like it still does not send QUIT... :(&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10020795" width="1" height="1"&gt;</description></item><item><title>re: System.Uri FAQ</title><link>http://blogs.msdn.com/b/ncl/archive/2010/02/23/system-uri-f-a-q.aspx#10009602</link><pubDate>Sat, 08 May 2010 14:24:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10009602</guid><dc:creator>Tratcher</dc:creator><description>&lt;p&gt;Remove the &amp;quot;file:///&amp;quot; before creating the Uri. &amp;nbsp;As shown in question 9 above, implicit file paths allow # in the path, explicit file paths do not.&lt;/p&gt;
&lt;p&gt;Uri test = new Uri(&amp;quot;file:///d:/folder1/folder#two/folder3&amp;quot;);&lt;/p&gt;
&lt;p&gt;Console.WriteLine(test.LocalPath); // d:\folder1\folder&lt;/p&gt;
&lt;p&gt;test = new Uri(&amp;quot;d:/folder1/folder#two/folder3&amp;quot;);&lt;/p&gt;
&lt;p&gt;Console.WriteLine(test.LocalPath); // d:\folder1\folder#two\folder3&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10009602" width="1" height="1"&gt;</description></item></channel></rss>