Re: [twsocket] Error trying to connect to FTP
It works fine on other servers and systems, so this one is just odd. Thanks for the thoughts. Matt -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Matt Minnis Sent: Wednesday, December 10, 2008 14:46 To: 'ICS support mailing' Subject: Re: [twsocket] Error trying to connect to FTP Here's a clue: Telnet connection to FTP worked. As I walked through I got to this step: list 150 Opening ASCII mode data connection for /bin/ls. 425 Can't open data connection. So something is blocking traffic... grr... shouldn't have anything installed that can do that. What on Windows Server 2003 can block the FTP dataport? There is no firewall or antivirus installed, Windows firewall is not on either. Matt -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Francois PIETTE Sent: Wednesday, December 10, 2008 14:20 To: ICS support mailing Subject: Re: [twsocket] Error trying to connect to FTP OK. So the sample program doesn't work: I guess there is something weird on your system. I have no idea what but it is probably related to a firewall or similar security product. I would suggest now to try with command line telnet on the same computer to connect to the FTP server. Something like: telenet FtpServerHostName 21 and see if you receive the FTP server banner. If you don't then this confirm something weird in your system. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: Matt Minnis ma...@firestreamww.com To: 'ICS support mailing' twsocket@elists.org Sent: Wednesday, December 10, 2008 8:44 PM Subject: Re: [twsocket] Error trying to connect to FTP From FTPTst: Winsock version 2.2 WinSock 2.0 Running Executing Requested Command Request OpenAsync Done. StatusCode = 500 LastResponse was : '500 ESocketException: No Error (#0 in Connect)' Error = 500 (500 ESocketException: No Error (#0 in Connect)) 220 Microsoft FTP Service So its something peculiar to these machines I'd guess. Thanks, Matt -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Francois PIETTE Sent: Wednesday, December 10, 2008 13:35 To: ICS support mailing Subject: Re: [twsocket] Error trying to connect to FTP To help find where the problem is, I suggest to use FtpTst demo program to test the same connection. We will know if the issue comes from your code or from something weird on thos computers. -- francois.pie...@overbyte.be The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: Matt Minnis ma...@firestreamww.com To: 'ICS support mailing' twsocket@elists.org Sent: Wednesday, December 10, 2008 7:57 PM Subject: Re: [twsocket] Error trying to connect to FTP I was trying to manually connect. That is the only connect call in the pipe. I sent this code as a simplified version of what I actually have. I have the try..except and so forth. What is the correct way to do what I am trying to do here? Matt -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels Sent: Wednesday, December 10, 2008 12:44 To: ICS support mailing Subject: Re: [twsocket] Error trying to connect to FTP Most likely you call Connect while a previous call to Connect is still in the pipe (some loop, TTimer etc.)? Form1.FTPClient1.Connect(); Log(5, '{hms}: FTP: Connected (hopefully)'); // --- not actually connected at this point :( That's true and the great nature of non-blocking methods. Connect is asynchron, you should call it only in case a previously call to Connect returned in OnRequestDone. Also method Connect should always be enclosed in a try except block since it might raise an exception. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Matt Minnis wrote: Using Delphi 7, ICS FTPCli V6.03 On some machines I get the following error: 500 ESocketException: No Error (#0 in Connect) Excerpt from my log: 10:45:07: FTP: Ready to connect ftp Request ConnectAsync Done. ftp StatusCode = 500 ftp LastResponse was : '500 ESocketException: No Error (#0 in Connect)' ftp Error = 500 (500 ESocketException: No Error (#0 in Connect)) This however works on other machines, ftp connects just fine and can do all the transfers I need to. I can connect manually (cmd prompt ftp) to the site just fine. I am trying to use Passive mode ftp, though I havent gotten that far yet in the process so that shouldn't matter. There is no firewall or antivirus on this particular server. Code snippet: SetCurrentDir(ExtractFilePath(FileName)); Form1.FTPClient1.Password :=
[twsocket] C++ Builder strange AV in OverbyteHttpTst.cpp
Hi, What's going on: for (I = 0; I HttpCli1-RcvdHeader-Count; I++) AV here == DisplayMemo-Lines-Add(hdr + HttpCli1-RcvdHeader-Strings[I]); HttpCli1-RcvdHeader is assigned (of course) and Count is greater zero, however I get an AV on the first iteration?? -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] C++ Builder strange AV in OverbyteHttpTst.cpp
Is the 0th item null or something odd like that? -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels Sent: Friday, December 12, 2008 11:30 To: ICS support mailing Subject: [twsocket] C++ Builder strange AV in OverbyteHttpTst.cpp Hi, What's going on: for (I = 0; I HttpCli1-RcvdHeader-Count; I++) AV here == DisplayMemo-Lines-Add(hdr + HttpCli1-RcvdHeader-Strings[I]); HttpCli1-RcvdHeader is assigned (of course) and Count is greater zero, however I get an AV on the first iteration?? -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] C++ Builder strange AV in OverbyteHttpTst.cpp
Arno Garrels wrote: for (I = 0; I HttpCli1-RcvdHeader-Count; I++) AV here == DisplayMemo-Lines-Add(hdr + HttpCli1-RcvdHeader-Strings[I]); Turned out to be just the common 'compiler switch hell' in C++ Builder. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] C++ Builder strange AV in OverbyteHttpTst.cpp
Which compiler switch? -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels Sent: Friday, December 12, 2008 14:10 To: ICS support mailing Subject: Re: [twsocket] C++ Builder strange AV in OverbyteHttpTst.cpp Arno Garrels wrote: for (I = 0; I HttpCli1-RcvdHeader-Count; I++) AV here == DisplayMemo-Lines-Add(hdr + HttpCli1-RcvdHeader-Strings[I]); Turned out to be just the common 'compiler switch hell' in C++ Builder. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] C++ Builder strange AV in OverbyteHttpTst.cpp
Matt Minnis wrote: Which compiler switch? If that were only clear? :( I changed the DCC32 | Debugging | Symbol Reference Info from Definitions Only to Reference Info for the ICS packages and the error was gone. However turning all back again and rebuild worked as well. This was C++ Builder 2007, Builder 2009 and 2006 worked fine with the default switches. -- Arno Garrels -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels Sent: Friday, December 12, 2008 14:10 To: ICS support mailing Subject: Re: [twsocket] C++ Builder strange AV in OverbyteHttpTst.cpp Arno Garrels wrote: for (I = 0; I HttpCli1-RcvdHeader-Count; I++) AV here == DisplayMemo-Lines-Add(hdr + HttpCli1-RcvdHeader-Strings[I]); Turned out to be just the common 'compiler switch hell' in C++ Builder. -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL install problem
Hello Team ICS and others, After many years of using ICS I am really stuck. I am having the same problem installing the OverbyteIcsDel70 with SSL support as Albert Dent was / is having. I started with a fresh install of Delphi 7 Pro (I have to use version 7 for this project). I applied patch 1 to Delphi 7. The Windows XP OS is patched up to date. I used Tortoise to download from Subversion the ICSV6 directory structure. I opened the file OverbyteIcsDel70.dpk from the vc32 directory I added the vc32 directory to the package project search path. I added the USE_SSL to the project conditional defines. I compiled the package. No errors. I installed the package. No errors. I closed the package project and opened the project OverbyteIcsSslWebServ.dpr I added the vc32 directory to the search path, the USE_SSL was already defined. I compiled the project and in the file OverbyteIcsSslSessionCache.pas I received 26 errors the first being Undeclared identifier 'TsslBaseComponent' Now I did note that the directory structure has changed a bit from all previous versions of the ICS components and that is the full path is now \ICSV6\trunk\Delphi\blah blah blah. Trunk was never in the full path before however this is the only difference I have found. This of course I assume is because I pulled it from SV and did not download it as a zip package. I tried the exact same procedure and used OverbyteIcsSslDel70.dpk - same results. Any idea of what could cause this? In the many years I have used ICS and most versions of Delphi I have never had any problems with installation or for that matter any of the components I have used. Thanks, Darin -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of A Drent Sent: Tuesday, December 09, 2008 6:05 AM To: twsocket@elists.org Subject: [twsocket] SSL install problem (tried to post this through the ics-ssl list, but since my email changed to albert dot drent at rug dot nl I was bounsed. Francois, could you correct this please?) --- From a long time I decided to upgrade the ics ssl components. Since it is open-source now I downloaded the v6package and found two packages: C:\Components\ICS6\Delphi\Vc32\OverbyteIcsDel100Package.dproj and C:\Components\ICS6\Delphi\Vc32\OverbyteIcsSSLDel100Package.dproj They look the same to me since only ssl is enabled in the project option. Installing these get me the error Undeclared identifier 'TsslBaseComponent' in OverbyteIcsSslSessionCache.pas. (and a lot more errors) I'm sure I'm overlooking something, but the original old package worked. What am I overlooking? Best regards, Albert Drent University of Groningen -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be __ Information from ESET Smart Security, version of virus signature database 3676 (20081209) __ The message was checked by ESET Smart Security. http://www.eset.com __ Information from ESET Smart Security, version of virus signature database 3688 (20081212) __ The message was checked by ESET Smart Security. http://www.eset.com -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
Re: [twsocket] SSL install problem
Darin McGee wrote: I just did a quick eyeball compare between the SV download and the zip download of ICSV6 and the zip files are newer. ?? I would think the SV files would be newer. The SVN file times in your local work copy are set to current time on checkout. In order to track changes SVN uses revision numbers, right click a directory or single file in you local work copy and select TortoiseSVN | Show Log. -- Arno Garrels [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html Darin -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Darin McGee Sent: Saturday, December 13, 2008 12:32 AM To: ICS support mailing Subject: Re: [twsocket] SSL install problem Hello Team ICS and others, After many years of using ICS I am really stuck. I am having the same problem installing the OverbyteIcsDel70 with SSL support as Albert Dent was / is having. I started with a fresh install of Delphi 7 Pro (I have to use version 7 for this project). I applied patch 1 to Delphi 7. The Windows XP OS is patched up to date. I used Tortoise to download from Subversion the ICSV6 directory structure. I opened the file OverbyteIcsDel70.dpk from the vc32 directory I added the vc32 directory to the package project search path. I added the USE_SSL to the project conditional defines. I compiled the package. No errors. I installed the package. No errors. I closed the package project and opened the project OverbyteIcsSslWebServ.dpr I added the vc32 directory to the search path, the USE_SSL was already defined. I compiled the project and in the file OverbyteIcsSslSessionCache.pas I received 26 errors the first being Undeclared identifier 'TsslBaseComponent' Now I did note that the directory structure has changed a bit from all previous versions of the ICS components and that is the full path is now \ICSV6\trunk\Delphi\blah blah blah. Trunk was never in the full path before however this is the only difference I have found. This of course I assume is because I pulled it from SV and did not download it as a zip package. I tried the exact same procedure and used OverbyteIcsSslDel70.dpk - same results. Any idea of what could cause this? In the many years I have used ICS and most versions of Delphi I have never had any problems with installation or for that matter any of the components I have used. Thanks, Darin -Original Message- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of A Drent Sent: Tuesday, December 09, 2008 6:05 AM To: twsocket@elists.org Subject: [twsocket] SSL install problem (tried to post this through the ics-ssl list, but since my email changed to albert dot drent at rug dot nl I was bounsed. Francois, could you correct this please?) --- From a long time I decided to upgrade the ics ssl components. Since it is open-source now I downloaded the v6package and found two packages: C:\Components\ICS6\Delphi\Vc32\OverbyteIcsDel100Package.dproj and C:\Components\ICS6\Delphi\Vc32\OverbyteIcsSSLDel100Package.dproj They look the same to me since only ssl is enabled in the project option. Installing these get me the error Undeclared identifier 'TsslBaseComponent' in OverbyteIcsSslSessionCache.pas. (and a lot more errors) I'm sure I'm overlooking something, but the original old package worked. What am I overlooking? Best regards, Albert Drent University of Groningen -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be __ Information from ESET Smart Security, version of virus signature database 3676 (20081209) __ The message was checked by ESET Smart Security. http://www.eset.com __ Information from ESET Smart Security, version of virus signature database 3688 (20081212) __ The message was checked by ESET Smart Security. http://www.eset.com -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be __ Information from ESET Smart Security, version of virus signature database 3688 (20081212) __ The message was checked by ESET Smart Security. http://www.eset.com __ Information from ESET Smart Security, version of virus signature database 3688 (20081212) __ The message was checked by ESET Smart Security. http://www.eset.com -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be