<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>netftp Issue Tracker Rss Feed</title><link>http://netftp.codeplex.com/workitem/list/basic</link><description>netftp Issue Tracker Rss Description</description><item><title>Closed Unassigned: IBM MainFrame GetListing Fails [373]</title><link>http://netftp.codeplex.com/workitem/373</link><description>On IBM Mainframe getListing and GetNameListing fail.&lt;br /&gt;&lt;br /&gt;ISSUE 1&amp;#58;&lt;br /&gt;first the reason is the it tries to get the current directory but do to the naming conventions it fails here is how I fixed that for name listing&amp;#58;&lt;br /&gt;&lt;br /&gt;String command&amp;#59;&lt;br /&gt;                if &amp;#40;String.IsNullOrWhiteSpace&amp;#40;path&amp;#41;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    command &amp;#61; &amp;#34;NLST&amp;#34;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;                else&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    command &amp;#61; string.Format&amp;#40;&amp;#34;NLST &amp;#123;0&amp;#125;&amp;#34;, path.GetFtpPath&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;&lt;br /&gt;                using &amp;#40;FtpDataStream stream &amp;#61; OpenDataStream&amp;#40;command, 0&amp;#41;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;&lt;br /&gt;also deleted where it sets path to current working directory if null or empty&lt;br /&gt;&lt;br /&gt;ISSUE 2&amp;#58;&lt;br /&gt;Another issue is the Parsers for getListing does not handle the response from the mainframe.&lt;br /&gt;I&amp;#39;ve attached a Sample of the LIST response.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ISSUE 3&amp;#58; &lt;br /&gt;on the getlisting if I do it on a empty mainframe directory it returns the 550 no data set error and in the library this throws.&lt;br /&gt;&lt;br /&gt;Comments: IBM Main Frames, VAX, MODCOMPS and whatever else esoteric system are the exceptions here. I&amp;#39;ve built in support for adding your own parsers but there is no provision nor will there be for dealing with environments that don&amp;#39;t support UNIX-style paths. If you can come up with a clean solution to the problem I&amp;#39;m all ears but I don&amp;#39;t have one and I have no way to work on developing one as I don&amp;#39;t have access to any of these kinds of systems and even if I did, from my end in terms of time and effort there is little value in adding support.</description><author>jptrosclair</author><pubDate>Thu, 23 May 2013 18:48:41 GMT</pubDate><guid isPermaLink="false">Closed Unassigned: IBM MainFrame GetListing Fails [373] 20130523064841P</guid></item><item><title>Commented Unassigned: IBM MainFrame GetListing Fails [373]</title><link>http://netftp.codeplex.com/workitem/373</link><description>On IBM Mainframe getListing and GetNameListing fail.&lt;br /&gt;&lt;br /&gt;ISSUE 1&amp;#58;&lt;br /&gt;first the reason is the it tries to get the current directory but do to the naming conventions it fails here is how I fixed that for name listing&amp;#58;&lt;br /&gt;&lt;br /&gt;String command&amp;#59;&lt;br /&gt;                if &amp;#40;String.IsNullOrWhiteSpace&amp;#40;path&amp;#41;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    command &amp;#61; &amp;#34;NLST&amp;#34;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;                else&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    command &amp;#61; string.Format&amp;#40;&amp;#34;NLST &amp;#123;0&amp;#125;&amp;#34;, path.GetFtpPath&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;&lt;br /&gt;                using &amp;#40;FtpDataStream stream &amp;#61; OpenDataStream&amp;#40;command, 0&amp;#41;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;&lt;br /&gt;also deleted where it sets path to current working directory if null or empty&lt;br /&gt;&lt;br /&gt;ISSUE 2&amp;#58;&lt;br /&gt;Another issue is the Parsers for getListing does not handle the response from the mainframe.&lt;br /&gt;I&amp;#39;ve attached a Sample of the LIST response.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ISSUE 3&amp;#58; &lt;br /&gt;on the getlisting if I do it on a empty mainframe directory it returns the 550 no data set error and in the library this throws.&lt;br /&gt;&lt;br /&gt;Comments: The 550 response is a permanent failure and System.Net.FtpClient handles it as such. It&amp;#39;s not my fault if the server treats listing an empty directory as a permanent failure and I will not change the behavior on this end because it would break situations where there really was an error.</description><author>jptrosclair</author><pubDate>Thu, 23 May 2013 18:25:17 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: IBM MainFrame GetListing Fails [373] 20130523062517P</guid></item><item><title>Commented Unassigned: IBM MainFrame GetListing Fails [373]</title><link>http://netftp.codeplex.com/workitem/373</link><description>On IBM Mainframe getListing and GetNameListing fail.&lt;br /&gt;&lt;br /&gt;ISSUE 1&amp;#58;&lt;br /&gt;first the reason is the it tries to get the current directory but do to the naming conventions it fails here is how I fixed that for name listing&amp;#58;&lt;br /&gt;&lt;br /&gt;String command&amp;#59;&lt;br /&gt;                if &amp;#40;String.IsNullOrWhiteSpace&amp;#40;path&amp;#41;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    command &amp;#61; &amp;#34;NLST&amp;#34;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;                else&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    command &amp;#61; string.Format&amp;#40;&amp;#34;NLST &amp;#123;0&amp;#125;&amp;#34;, path.GetFtpPath&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;&lt;br /&gt;                using &amp;#40;FtpDataStream stream &amp;#61; OpenDataStream&amp;#40;command, 0&amp;#41;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;&lt;br /&gt;also deleted where it sets path to current working directory if null or empty&lt;br /&gt;&lt;br /&gt;ISSUE 2&amp;#58;&lt;br /&gt;Another issue is the Parsers for getListing does not handle the response from the mainframe.&lt;br /&gt;I&amp;#39;ve attached a Sample of the LIST response.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ISSUE 3&amp;#58; &lt;br /&gt;on the getlisting if I do it on a empty mainframe directory it returns the 550 no data set error and in the library this throws.&lt;br /&gt;&lt;br /&gt;Comments: The 550 response is a permanent failure and System.Net.FtpClient handles it as such. It&amp;#39;s not my fault if the server treats listing an empty directory as a permanent failure and I will change the behavior on this end because it would break situations where there really was an error.</description><author>jptrosclair</author><pubDate>Thu, 23 May 2013 18:24:41 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: IBM MainFrame GetListing Fails [373] 20130523062441P</guid></item><item><title>Created Unassigned: IBM MainFrame GetListing Fails [373]</title><link>http://netftp.codeplex.com/workitem/373</link><description>On IBM Mainframe getListing and GetNameListing fail.&lt;br /&gt;&lt;br /&gt;ISSUE 1&amp;#58;&lt;br /&gt;first the reason is the it tries to get the current directory but do to the naming conventions it fails here is how I fixed that for name listing&amp;#58;&lt;br /&gt;&lt;br /&gt;String command&amp;#59;&lt;br /&gt;                if &amp;#40;String.IsNullOrWhiteSpace&amp;#40;path&amp;#41;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    command &amp;#61; &amp;#34;NLST&amp;#34;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;                else&lt;br /&gt;                &amp;#123;&lt;br /&gt;                    command &amp;#61; string.Format&amp;#40;&amp;#34;NLST &amp;#123;0&amp;#125;&amp;#34;, path.GetFtpPath&amp;#40;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;                &amp;#125;&lt;br /&gt;&lt;br /&gt;                using &amp;#40;FtpDataStream stream &amp;#61; OpenDataStream&amp;#40;command, 0&amp;#41;&amp;#41;&lt;br /&gt;                &amp;#123;&lt;br /&gt;&lt;br /&gt;also deleted where it sets path to current working directory if null or empty&lt;br /&gt;&lt;br /&gt;ISSUE 2&amp;#58;&lt;br /&gt;Another issue is the Parsers for getListing does not handle the response from the mainframe.&lt;br /&gt;I&amp;#39;ve attached a Sample of the LIST response.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ISSUE 3&amp;#58; &lt;br /&gt;on the getlisting if I do it on a empty mainframe directory it returns the 550 no data set error and in the library this throws.&lt;br /&gt;&lt;br /&gt;</description><author>joporter_Ins</author><pubDate>Thu, 23 May 2013 16:20:31 GMT</pubDate><guid isPermaLink="false">Created Unassigned: IBM MainFrame GetListing Fails [373] 20130523042031P</guid></item><item><title>Closed Unassigned: error in FtpClient.cs::GetFileSize [372]</title><link>http://netftp.codeplex.com/workitem/372</link><description>If the SIZE command fails in the GetFileSize method it will return 0 and not -1 as the documentation says.&lt;br /&gt;Tested version&amp;#58; 13.5.9.0&lt;br /&gt;Comments: Fixed in latest revision</description><author>jptrosclair</author><pubDate>Thu, 16 May 2013 15:05:34 GMT</pubDate><guid isPermaLink="false">Closed Unassigned: error in FtpClient.cs::GetFileSize [372] 20130516030534P</guid></item><item><title>Commented Unassigned: error in FtpClient.cs::GetFileSize [372]</title><link>http://netftp.codeplex.com/workitem/372</link><description>If the SIZE command fails in the GetFileSize method it will return 0 and not -1 as the documentation says.&lt;br /&gt;Tested version&amp;#58; 13.5.9.0&lt;br /&gt;Comments: The latest &amp;#91;revision&amp;#93;&amp;#40;https&amp;#58;&amp;#47;&amp;#47;netftp.codeplex.com&amp;#47;SourceControl&amp;#47;list&amp;#47;changesets&amp;#41; should address this problem.</description><author>jptrosclair</author><pubDate>Thu, 16 May 2013 14:33:30 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: error in FtpClient.cs::GetFileSize [372] 20130516023330P</guid></item><item><title>Created Unassigned: error in FtpClient.cs::GetFileSize [372]</title><link>http://netftp.codeplex.com/workitem/372</link><description>If the SIZE command fails in the GetFileSize method it will return 0 and not -1 as the documentation says.&lt;br /&gt;Tested version&amp;#58; 13.5.9.0&lt;br /&gt;</description><author>disinformation</author><pubDate>Thu, 16 May 2013 12:44:15 GMT</pubDate><guid isPermaLink="false">Created Unassigned: error in FtpClient.cs::GetFileSize [372] 20130516124415P</guid></item><item><title>Closed Unassigned: Mocking FtpClient [371]</title><link>http://netftp.codeplex.com/workitem/371</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I use MoQ in my unit test, but i can&amp;#39;t mock some FtpClient Methods.&lt;br /&gt;&lt;br /&gt;System.NotSupportedException&amp;#58; Invalid setup on a non-virtual &amp;#40;overridable in VB&amp;#41; member.&lt;br /&gt;&lt;br /&gt;Searching on the web it appears that i can only mock interfaces or virtual methods.&lt;br /&gt;&lt;br /&gt;&amp;#34;In order to control the behavior of a mock object &amp;#40;in Moq, at least&amp;#41;, you either need to mock an interface, or make sure that the behavior you&amp;#39;re trying to control is marked virtual.&amp;#34;&lt;br /&gt;&lt;br /&gt;FtpClient implements no interfaces but IDisposable &amp;#40;not the method i want to mock&amp;#41; and many methods are not virtual.&lt;br /&gt;&lt;br /&gt;Ex &amp;#58; public FtpListItem&amp;#91;&amp;#93; GetListing&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Is it possible to mark public method as virtual or define interface&amp;#40;s&amp;#41; &amp;#63;&lt;br /&gt;It would make TDD easier.&lt;br /&gt;Comments: Latest revision contains contains interfaces.</description><author>jptrosclair</author><pubDate>Tue, 23 Apr 2013 13:31:20 GMT</pubDate><guid isPermaLink="false">Closed Unassigned: Mocking FtpClient [371] 20130423013120P</guid></item><item><title>Commented Unassigned: Mocking FtpClient [371]</title><link>http://netftp.codeplex.com/workitem/371</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I use MoQ in my unit test, but i can&amp;#39;t mock some FtpClient Methods.&lt;br /&gt;&lt;br /&gt;System.NotSupportedException&amp;#58; Invalid setup on a non-virtual &amp;#40;overridable in VB&amp;#41; member.&lt;br /&gt;&lt;br /&gt;Searching on the web it appears that i can only mock interfaces or virtual methods.&lt;br /&gt;&lt;br /&gt;&amp;#34;In order to control the behavior of a mock object &amp;#40;in Moq, at least&amp;#41;, you either need to mock an interface, or make sure that the behavior you&amp;#39;re trying to control is marked virtual.&amp;#34;&lt;br /&gt;&lt;br /&gt;FtpClient implements no interfaces but IDisposable &amp;#40;not the method i want to mock&amp;#41; and many methods are not virtual.&lt;br /&gt;&lt;br /&gt;Ex &amp;#58; public FtpListItem&amp;#91;&amp;#93; GetListing&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Is it possible to mark public method as virtual or define interface&amp;#40;s&amp;#41; &amp;#63;&lt;br /&gt;It would make TDD easier.&lt;br /&gt;Comments: I&amp;#39;ve added 3 new interfaces, IFtpClient, IFtpReply and IFtpListItem.</description><author>jptrosclair</author><pubDate>Tue, 23 Apr 2013 13:30:33 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: Mocking FtpClient [371] 20130423013033P</guid></item><item><title>Commented Unassigned: Mocking FtpClient [371]</title><link>http://netftp.codeplex.com/workitem/371</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I use MoQ in my unit test, but i can&amp;#39;t mock some FtpClient Methods.&lt;br /&gt;&lt;br /&gt;System.NotSupportedException&amp;#58; Invalid setup on a non-virtual &amp;#40;overridable in VB&amp;#41; member.&lt;br /&gt;&lt;br /&gt;Searching on the web it appears that i can only mock interfaces or virtual methods.&lt;br /&gt;&lt;br /&gt;&amp;#34;In order to control the behavior of a mock object &amp;#40;in Moq, at least&amp;#41;, you either need to mock an interface, or make sure that the behavior you&amp;#39;re trying to control is marked virtual.&amp;#34;&lt;br /&gt;&lt;br /&gt;FtpClient implements no interfaces but IDisposable &amp;#40;not the method i want to mock&amp;#41; and many methods are not virtual.&lt;br /&gt;&lt;br /&gt;Ex &amp;#58; public FtpListItem&amp;#91;&amp;#93; GetListing&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Is it possible to mark public method as virtual or define interface&amp;#40;s&amp;#41; &amp;#63;&lt;br /&gt;It would make TDD easier.&lt;br /&gt;Comments: I&amp;#39;ll look at adding interfaces where appropriate.</description><author>jptrosclair</author><pubDate>Tue, 23 Apr 2013 01:40:03 GMT</pubDate><guid isPermaLink="false">Commented Unassigned: Mocking FtpClient [371] 20130423014003A</guid></item><item><title>Created Unassigned: Mocking FtpClient [371]</title><link>http://netftp.codeplex.com/workitem/371</link><description>Hi,&lt;br /&gt;&lt;br /&gt;I use MoQ in my unit test, but i can&amp;#39;t mock some FtpClient Methods.&lt;br /&gt;&lt;br /&gt;System.NotSupportedException&amp;#58; Invalid setup on a non-virtual &amp;#40;overridable in VB&amp;#41; member.&lt;br /&gt;&lt;br /&gt;Searching on the web it appears that i can only mock interfaces or virtual methods.&lt;br /&gt;&lt;br /&gt;&amp;#34;In order to control the behavior of a mock object &amp;#40;in Moq, at least&amp;#41;, you either need to mock an interface, or make sure that the behavior you&amp;#39;re trying to control is marked virtual.&amp;#34;&lt;br /&gt;&lt;br /&gt;FtpClient implements no interfaces but IDisposable &amp;#40;not the method i want to mock&amp;#41; and many methods are not virtual.&lt;br /&gt;&lt;br /&gt;Ex &amp;#58; public FtpListItem&amp;#91;&amp;#93; GetListing&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;Is it possible to mark public method as virtual or define interface&amp;#40;s&amp;#41; &amp;#63;&lt;br /&gt;It would make TDD easier.&lt;br /&gt;</description><author>Jissai</author><pubDate>Thu, 18 Apr 2013 08:22:18 GMT</pubDate><guid isPermaLink="false">Created Unassigned: Mocking FtpClient [371] 20130418082218A</guid></item><item><title>Closed Issue: SFTP Connection Issue [370]</title><link>http://netftp.codeplex.com/workitem/370</link><description>Help&amp;#33; I am having a connection issue with sftp . I keep getting this error &amp;#34;Timed out trying to read data from the socket stream&amp;#33;&amp;#34;&lt;br /&gt;&lt;br /&gt;Following is the code &lt;br /&gt;&lt;br /&gt;var ftp &amp;#61; new System.Net.FtpClient.FtpClient&lt;br /&gt;&lt;br /&gt;                              &amp;#123;&lt;br /&gt;                               &lt;br /&gt;                                  Host &amp;#61; &amp;#34;xxx.host.com&amp;#34;,&lt;br /&gt;                                  Port &amp;#61; 1012,&lt;br /&gt;                                  Credentials &amp;#61; new NetworkCredential&amp;#40;&amp;#34;user&amp;#34;, &amp;#34;pwd&amp;#34;&amp;#41;&lt;br /&gt;                                  ,DataConnectionEncryption  &amp;#61; true,&lt;br /&gt;                                  DataConnectionType &amp;#61; FtpDataConnectionType.AutoPassive      &lt;br /&gt;                                  ,EncryptionMode &amp;#61; FtpEncryptionMode.Explicit,&lt;br /&gt;                                  &lt;br /&gt;                              &amp;#125;&amp;#59;&lt;br /&gt;                &lt;br /&gt;                &lt;br /&gt;                ftp.Connect&amp;#40;&amp;#41;&amp;#59; &amp;#47;&amp;#47; Error Here&lt;br /&gt;&lt;br /&gt;FYI - I am not using any certificates&lt;br /&gt;&lt;br /&gt;I successfully tried using filezilla and following is the log &amp;#40; I masked the actual credentials and host name&amp;#41;&lt;br /&gt;Status&amp;#58;&amp;#9;Connecting to xxx.host.com&amp;#58;1012...&lt;br /&gt;Response&amp;#58;&amp;#9;fzSftp started&lt;br /&gt;Command&amp;#58;&amp;#9;open &amp;#34;user&amp;#64; xxx.host.co&amp;#34; 1012&lt;br /&gt;Command&amp;#58;&amp;#9;Pass&amp;#58; &amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&lt;br /&gt;Status&amp;#58;&amp;#9;Connected to  xxx.host.co&lt;br /&gt;Status&amp;#58;&amp;#9;Retrieving directory listing...&lt;br /&gt;Command&amp;#58;&amp;#9;pwd&lt;br /&gt;Response&amp;#58;&amp;#9;Current directory is&amp;#58; &amp;#34;&amp;#47;&amp;#34;&lt;br /&gt;Status&amp;#58;&amp;#9;Directory listing successful&lt;br /&gt;&lt;br /&gt;Comments: This code doesn&amp;#39;t support SFTP, only FTP and FTPS.</description><author>jptrosclair</author><pubDate>Wed, 13 Mar 2013 20:08:40 GMT</pubDate><guid isPermaLink="false">Closed Issue: SFTP Connection Issue [370] 20130313080840P</guid></item><item><title>Commented Issue: SFTP Connection Issue [370]</title><link>http://netftp.codeplex.com/workitem/370</link><description>Help&amp;#33; I am having a connection issue with sftp . I keep getting this error &amp;#34;Timed out trying to read data from the socket stream&amp;#33;&amp;#34;&lt;br /&gt;&lt;br /&gt;Following is the code &lt;br /&gt;&lt;br /&gt;var ftp &amp;#61; new System.Net.FtpClient.FtpClient&lt;br /&gt;&lt;br /&gt;                              &amp;#123;&lt;br /&gt;                               &lt;br /&gt;                                  Host &amp;#61; &amp;#34;xxx.host.com&amp;#34;,&lt;br /&gt;                                  Port &amp;#61; 1012,&lt;br /&gt;                                  Credentials &amp;#61; new NetworkCredential&amp;#40;&amp;#34;user&amp;#34;, &amp;#34;pwd&amp;#34;&amp;#41;&lt;br /&gt;                                  ,DataConnectionEncryption  &amp;#61; true,&lt;br /&gt;                                  DataConnectionType &amp;#61; FtpDataConnectionType.AutoPassive      &lt;br /&gt;                                  ,EncryptionMode &amp;#61; FtpEncryptionMode.Explicit,&lt;br /&gt;                                  &lt;br /&gt;                              &amp;#125;&amp;#59;&lt;br /&gt;                &lt;br /&gt;                &lt;br /&gt;                ftp.Connect&amp;#40;&amp;#41;&amp;#59; &amp;#47;&amp;#47; Error Here&lt;br /&gt;&lt;br /&gt;FYI - I am not using any certificates&lt;br /&gt;&lt;br /&gt;I successfully tried using filezilla and following is the log &amp;#40; I masked the actual credentials and host name&amp;#41;&lt;br /&gt;Status&amp;#58;&amp;#9;Connecting to xxx.host.com&amp;#58;1012...&lt;br /&gt;Response&amp;#58;&amp;#9;fzSftp started&lt;br /&gt;Command&amp;#58;&amp;#9;open &amp;#34;user&amp;#64; xxx.host.co&amp;#34; 1012&lt;br /&gt;Command&amp;#58;&amp;#9;Pass&amp;#58; &amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&lt;br /&gt;Status&amp;#58;&amp;#9;Connected to  xxx.host.co&lt;br /&gt;Status&amp;#58;&amp;#9;Retrieving directory listing...&lt;br /&gt;Command&amp;#58;&amp;#9;pwd&lt;br /&gt;Response&amp;#58;&amp;#9;Current directory is&amp;#58; &amp;#34;&amp;#47;&amp;#34;&lt;br /&gt;Status&amp;#58;&amp;#9;Directory listing successful&lt;br /&gt;&lt;br /&gt;Comments: This code does not support SFTP, see my response to you in the discussions.</description><author>jptrosclair</author><pubDate>Wed, 13 Mar 2013 20:08:16 GMT</pubDate><guid isPermaLink="false">Commented Issue: SFTP Connection Issue [370] 20130313080816P</guid></item><item><title>Commented Issue: SFTP Connection Issue [370]</title><link>http://netftp.codeplex.com/workitem/370</link><description>Help&amp;#33; I am having a connection issue with sftp . I keep getting this error &amp;#34;Timed out trying to read data from the socket stream&amp;#33;&amp;#34;&lt;br /&gt;&lt;br /&gt;Following is the code &lt;br /&gt;&lt;br /&gt;var ftp &amp;#61; new System.Net.FtpClient.FtpClient&lt;br /&gt;&lt;br /&gt;                              &amp;#123;&lt;br /&gt;                               &lt;br /&gt;                                  Host &amp;#61; &amp;#34;xxx.host.com&amp;#34;,&lt;br /&gt;                                  Port &amp;#61; 1012,&lt;br /&gt;                                  Credentials &amp;#61; new NetworkCredential&amp;#40;&amp;#34;user&amp;#34;, &amp;#34;pwd&amp;#34;&amp;#41;&lt;br /&gt;                                  ,DataConnectionEncryption  &amp;#61; true,&lt;br /&gt;                                  DataConnectionType &amp;#61; FtpDataConnectionType.AutoPassive      &lt;br /&gt;                                  ,EncryptionMode &amp;#61; FtpEncryptionMode.Explicit,&lt;br /&gt;                                  &lt;br /&gt;                              &amp;#125;&amp;#59;&lt;br /&gt;                &lt;br /&gt;                &lt;br /&gt;                ftp.Connect&amp;#40;&amp;#41;&amp;#59; &amp;#47;&amp;#47; Error Here&lt;br /&gt;&lt;br /&gt;FYI - I am not using any certificates&lt;br /&gt;&lt;br /&gt;I successfully tried using filezilla and following is the log &amp;#40; I masked the actual credentials and host name&amp;#41;&lt;br /&gt;Status&amp;#58;&amp;#9;Connecting to xxx.host.com&amp;#58;1012...&lt;br /&gt;Response&amp;#58;&amp;#9;fzSftp started&lt;br /&gt;Command&amp;#58;&amp;#9;open &amp;#34;user&amp;#64; xxx.host.co&amp;#34; 1012&lt;br /&gt;Command&amp;#58;&amp;#9;Pass&amp;#58; &amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&lt;br /&gt;Status&amp;#58;&amp;#9;Connected to  xxx.host.co&lt;br /&gt;Status&amp;#58;&amp;#9;Retrieving directory listing...&lt;br /&gt;Command&amp;#58;&amp;#9;pwd&lt;br /&gt;Response&amp;#58;&amp;#9;Current directory is&amp;#58; &amp;#34;&amp;#47;&amp;#34;&lt;br /&gt;Status&amp;#58;&amp;#9;Directory listing successful&lt;br /&gt;&lt;br /&gt;Comments: following is the stack trace&amp;#10;&amp;#10;at System.Net.FtpClient.FtpSocketStream.Read&amp;#40;Byte&amp;#91;&amp;#93; buffer, Int32 offset, Int32 count&amp;#41;&amp;#92;r&amp;#92;n   at System.Net.FtpClient.FtpSocketStream.ReadLine&amp;#40;Encoding encoding&amp;#41;&amp;#92;r&amp;#92;n   at System.Net.FtpClient.FtpClient.GetReply&amp;#40;&amp;#41;&amp;#92;r&amp;#92;n   at System.Net.FtpClient.FtpClient.Connect&amp;#40;&amp;#41;</description><author>pollmaker</author><pubDate>Wed, 13 Mar 2013 20:07:26 GMT</pubDate><guid isPermaLink="false">Commented Issue: SFTP Connection Issue [370] 20130313080726P</guid></item><item><title>Created Issue: SFTP Connection Issue [370]</title><link>http://netftp.codeplex.com/workitem/370</link><description>Help&amp;#33; I am having a connection issue with sftp . I keep getting this error &amp;#34;Timed out trying to read data from the socket stream&amp;#33;&amp;#34;&lt;br /&gt;&lt;br /&gt;Following is the code &lt;br /&gt;&lt;br /&gt;var ftp &amp;#61; new System.Net.FtpClient.FtpClient&lt;br /&gt;&lt;br /&gt;                              &amp;#123;&lt;br /&gt;                               &lt;br /&gt;                                  Host &amp;#61; &amp;#34;xxx.host.com&amp;#34;,&lt;br /&gt;                                  Port &amp;#61; 1012,&lt;br /&gt;                                  Credentials &amp;#61; new NetworkCredential&amp;#40;&amp;#34;user&amp;#34;, &amp;#34;pwd&amp;#34;&amp;#41;&lt;br /&gt;                                  ,DataConnectionEncryption  &amp;#61; true,&lt;br /&gt;                                  DataConnectionType &amp;#61; FtpDataConnectionType.AutoPassive      &lt;br /&gt;                                  ,EncryptionMode &amp;#61; FtpEncryptionMode.Explicit,&lt;br /&gt;                                  &lt;br /&gt;                              &amp;#125;&amp;#59;&lt;br /&gt;                &lt;br /&gt;                &lt;br /&gt;                ftp.Connect&amp;#40;&amp;#41;&amp;#59; &amp;#47;&amp;#47; Error Here&lt;br /&gt;&lt;br /&gt;FYI - I am not using any certificates&lt;br /&gt;&lt;br /&gt;I successfully tried using filezilla and following is the log &amp;#40; I masked the actual credentials and host name&amp;#41;&lt;br /&gt;Status&amp;#58;&amp;#9;Connecting to xxx.host.com&amp;#58;1012...&lt;br /&gt;Response&amp;#58;&amp;#9;fzSftp started&lt;br /&gt;Command&amp;#58;&amp;#9;open &amp;#34;user&amp;#64; xxx.host.co&amp;#34; 1012&lt;br /&gt;Command&amp;#58;&amp;#9;Pass&amp;#58; &amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&amp;#42;&lt;br /&gt;Status&amp;#58;&amp;#9;Connected to  xxx.host.co&lt;br /&gt;Status&amp;#58;&amp;#9;Retrieving directory listing...&lt;br /&gt;Command&amp;#58;&amp;#9;pwd&lt;br /&gt;Response&amp;#58;&amp;#9;Current directory is&amp;#58; &amp;#34;&amp;#47;&amp;#34;&lt;br /&gt;Status&amp;#58;&amp;#9;Directory listing successful&lt;br /&gt;&lt;br /&gt;</description><author>pollmaker</author><pubDate>Wed, 13 Mar 2013 19:51:58 GMT</pubDate><guid isPermaLink="false">Created Issue: SFTP Connection Issue [370] 20130313075158P</guid></item><item><title>Closed Issue: invalid certificate [369]</title><link>http://netftp.codeplex.com/workitem/369</link><description>Hello,&lt;br /&gt;&lt;br /&gt; I want to connect to my FTP server with explicit FTPS &amp;#40;server settings are set&amp;#41; but I get a invalid certificate error when I am trying to connect. This is my code&amp;#58;&lt;br /&gt;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;img4.fotos-hochladen.net&amp;#47;uploads&amp;#47;ftpsyncerrorb3r7d4jcle.png&lt;br /&gt;&lt;br /&gt;How do I fix this error&amp;#63;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;chn&lt;br /&gt;Comments: You&amp;#39;re not holding it right</description><author>jptrosclair</author><pubDate>Mon, 04 Mar 2013 14:25:50 GMT</pubDate><guid isPermaLink="false">Closed Issue: invalid certificate [369] 20130304022550P</guid></item><item><title>Commented Issue: invalid certificate [369]</title><link>http://netftp.codeplex.com/workitem/369</link><description>Hello,&lt;br /&gt;&lt;br /&gt; I want to connect to my FTP server with explicit FTPS &amp;#40;server settings are set&amp;#41; but I get a invalid certificate error when I am trying to connect. This is my code&amp;#58;&lt;br /&gt;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;img4.fotos-hochladen.net&amp;#47;uploads&amp;#47;ftpsyncerrorb3r7d4jcle.png&lt;br /&gt;&lt;br /&gt;How do I fix this error&amp;#63;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;chn&lt;br /&gt;Comments: I&amp;#39;m sorry, ftpClient.ValidateCertificate</description><author>jptrosclair</author><pubDate>Mon, 04 Mar 2013 14:18:14 GMT</pubDate><guid isPermaLink="false">Commented Issue: invalid certificate [369] 20130304021814P</guid></item><item><title>Commented Issue: invalid certificate [369]</title><link>http://netftp.codeplex.com/workitem/369</link><description>Hello,&lt;br /&gt;&lt;br /&gt; I want to connect to my FTP server with explicit FTPS &amp;#40;server settings are set&amp;#41; but I get a invalid certificate error when I am trying to connect. This is my code&amp;#58;&lt;br /&gt;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;img4.fotos-hochladen.net&amp;#47;uploads&amp;#47;ftpsyncerrorb3r7d4jcle.png&lt;br /&gt;&lt;br /&gt;How do I fix this error&amp;#63;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;chn&lt;br /&gt;Comments: You need to handle the ftpClient.InvalidCertificate event and set the e.Accept property to true.</description><author>jptrosclair</author><pubDate>Mon, 04 Mar 2013 14:17:10 GMT</pubDate><guid isPermaLink="false">Commented Issue: invalid certificate [369] 20130304021710P</guid></item><item><title>Created Issue: invalid certificate [369]</title><link>http://netftp.codeplex.com/workitem/369</link><description>Hello,&lt;br /&gt;&lt;br /&gt; I want to connect to my FTP server with explicit FTPS &amp;#40;server settings are set&amp;#41; but I get a invalid certificate error when I am trying to connect. This is my code&amp;#58;&lt;br /&gt;&lt;br /&gt;http&amp;#58;&amp;#47;&amp;#47;img4.fotos-hochladen.net&amp;#47;uploads&amp;#47;ftpsyncerrorb3r7d4jcle.png&lt;br /&gt;&lt;br /&gt;How do I fix this error&amp;#63;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;chn&lt;br /&gt;</description><author>vrtz</author><pubDate>Mon, 04 Mar 2013 08:55:25 GMT</pubDate><guid isPermaLink="false">Created Issue: invalid certificate [369] 20130304085525A</guid></item><item><title>Closed Issue: The FTPClient lacks a KeepAlive option. [368]</title><link>http://netftp.codeplex.com/workitem/368</link><description>For TCP Communication with an embedded host, i needed to set the KeepAlive Socket Option, which FTPClient lacks.&lt;br /&gt;&lt;br /&gt;I have added this Option. &lt;br /&gt;In File &amp;#34;FTPClient.cs&amp;#34; i added a property&amp;#58;&lt;br /&gt;&lt;br /&gt;        __&amp;#47;&amp;#47; new property &amp;#34;KeepAlive&amp;#34; added&lt;br /&gt;        &amp;#47;&amp;#47; Gerhard Biebl February 13, 2013&lt;br /&gt;        bool m_keepalive &amp;#61; false&amp;#59;&lt;br /&gt;        public bool KeepAlive&lt;br /&gt;        &amp;#123;&lt;br /&gt;            get&lt;br /&gt;            &amp;#123;&lt;br /&gt;                return m_keepalive&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            set&lt;br /&gt;            &amp;#123;&lt;br /&gt;                m_keepalive &amp;#61; value&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;        &amp;#125;__&lt;br /&gt;&lt;br /&gt;Furthermore, in File &amp;#34;FTPSocketStream.cs&amp;#34; i added the following to the &amp;#34;Connect&amp;#34; function&amp;#58;&lt;br /&gt;&lt;br /&gt;                    m_socket &amp;#61; new Socket&amp;#40;addresses&amp;#91;i&amp;#93;.AddressFamily, SocketType.Stream, ProtocolType.Tcp&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;                    __if &amp;#40;m_keepalive &amp;#61;&amp;#61; true&amp;#41;&lt;br /&gt;                    &amp;#123;&lt;br /&gt;                        m_socket.SetSocketOption&amp;#40;SocketOptionLevel.Socket,&lt;br /&gt;                                                    SocketOptionName.KeepAlive,&lt;br /&gt;                                                    true&amp;#41;&amp;#59;&lt;br /&gt;                    &amp;#125;____&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comments: Assuming new SocketKeepAlive property has addressed the issue. If it hasn&amp;#39;t, open a new bug report.</description><author>jptrosclair</author><pubDate>Fri, 15 Feb 2013 15:18:36 GMT</pubDate><guid isPermaLink="false">Closed Issue: The FTPClient lacks a KeepAlive option. [368] 20130215031836P</guid></item></channel></rss>