<?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>Changing to the root directory with FtpWebRequest</title><link>http://blogs.msdn.com/mariya/archive/2006/03/06/544523.aspx</link><description>Many customers ask us how they can use the CWD command with our FtpWebRequest. The answer is: you cannot use the command directly, but you can modify the uri parameter to achieve the same result. Let's say you're using the following format: String uri</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Changing to the root directory with FtpWebRequest</title><link>http://blogs.msdn.com/mariya/archive/2006/03/06/544523.aspx#658401</link><pubDate>Fri, 07 Jul 2006 02:49:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:658401</guid><dc:creator>ionutg</dc:creator><description>This doesn't seem to work for me in 2.0 &lt;BR&gt;Any creation of a URI will execute a canonical transformation on the URI thus getting rid of .. or %2E2E &lt;BR&gt;Do I do something wrong here? &lt;BR&gt;&lt;BR&gt;WebRequest req = WebRequest.Create( @"&lt;A href="https://somesite.com/c:/WINDOWS/system32/cmd.exe%22" target=_new rel=nofollow&gt;https://somesite.com/../../../c:/WINDOWS/system32/cmd.exe"&lt;/A&gt; ); &lt;BR&gt;OR &lt;BR&gt;WebRequest req = WebRequest.Create( @"&lt;A href="https://somesite.com/c:/WINDOWS/system32/cmd.exe%22" target=_new rel=nofollow&gt;https://somesite.com/%2E/%2E/%2E/c:/WINDOWS/system32/cmd.exe"&lt;/A&gt; ); &lt;BR&gt;try &lt;BR&gt;{ &lt;BR&gt;&amp;nbsp; &amp;nbsp; Console.Write( "URL: \t" + req.RequestUri ); &lt;BR&gt;&lt;BR&gt;Can you give me some pointers please?</description></item><item><title>re: Changing to the root directory with FtpWebRequest</title><link>http://blogs.msdn.com/mariya/archive/2006/03/06/544523.aspx#664835</link><pubDate>Thu, 13 Jul 2006 22:29:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:664835</guid><dc:creator>Kaoticfen</dc:creator><description>This is so incredibly helpful! thank you so much. I had spent a great deal of time trying to figure how to navigate to a different directory and I stumbled upon this. Thanks again</description></item><item><title>FTP classes in .NET 2.0</title><link>http://blogs.msdn.com/mariya/archive/2006/03/06/544523.aspx#680766</link><pubDate>Fri, 28 Jul 2006 01:27:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:680766</guid><dc:creator>Patrick Steele's .NET Blog</dc:creator><description>I had a chance to play around with the FTP classes in .NET 2.0 (FtpWebRequest and FtpWebResponse). My</description></item><item><title>re: Changing to the root directory with FtpWebRequest</title><link>http://blogs.msdn.com/mariya/archive/2006/03/06/544523.aspx#681671</link><pubDate>Fri, 28 Jul 2006 20:07:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:681671</guid><dc:creator>grauenwolf</dc:creator><description>Two things. &lt;br&gt;&lt;br&gt;One, this is the most aweful implmentation of a FTP client I have ever seen. You need to track down the architects and them senseless. Seriously, someone should have spoken up and said, &amp;quot;You know, trying to shoehorn a FTP client into the WebRequest model may not be a good idea.&amp;quot;&lt;br&gt;&lt;br&gt;Secondly, please post this code on the MSDN Wki site.</description></item><item><title>FtpWebRequest compile with extended comments</title><link>http://blogs.msdn.com/mariya/archive/2006/03/06/544523.aspx#8773717</link><pubDate>Sat, 26 Jul 2008 04:24:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8773717</guid><dc:creator>Network Class Library Team (System.Net)</dc:creator><description>&lt;p&gt;This is a current compile of the team's existing blogs on FtpWebRequest. I am going to update it periodically&lt;/p&gt;
</description></item><item><title>re: Changing to the root directory with FtpWebRequest</title><link>http://blogs.msdn.com/mariya/archive/2006/03/06/544523.aspx#9473050</link><pubDate>Fri, 13 Mar 2009 15:11:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9473050</guid><dc:creator>KunalPradhan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am able to FTP a file using %2E from a console application.&lt;/p&gt;
&lt;p&gt;However when I try the same thing from Windows Service I am inable to FTP.&lt;/p&gt;
&lt;p&gt;It gives the below error&lt;/p&gt;
&lt;p&gt;The remote server returned an error: (550) File unavailable (e.g., file not found, no access).&lt;/p&gt;
&lt;p&gt;Are there any settings for Windows Service ?&lt;/p&gt;
&lt;p&gt;The code is the same in both the cases and also the Network Credentials.&lt;/p&gt;
&lt;p&gt;Please help !!!&lt;/p&gt;
</description></item><item><title>Directory Backwards | Inverse Phone Directory</title><link>http://blogs.msdn.com/mariya/archive/2006/03/06/544523.aspx#9667238</link><pubDate>Sun, 31 May 2009 07:59:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9667238</guid><dc:creator>Directory Backwards | Inverse Phone Directory</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://inverse-phone-directory.4pu.com/directory-backwards/30/"&gt;http://inverse-phone-directory.4pu.com/directory-backwards/30/&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>