From: Kalantri, J. <Jeebitesh_Kalantri@ADP.com> - 2011-02-15 12:34:35
|
Try to put an IP address instead of the system like \\xx.xxx.xxx.xx<file:///\\xx.xxx.xxx.xx> ot you can also try \\systemname<file:///\\systemname>, I don't think you need to put FTP protocol there. And you can also try to put <property name="remote-dir" value="."/> Try to point the FTP location to that directory Regards, Jeebitesh Kalantri From: Vinod Soni [mailto:vs...@hu...] Sent: Tuesday, February 15, 2011 5:54 PM To: Kalantri, Jeebitesh Cc: nan...@li... Subject: RE: [nant-dev] FTP task not working Dear Kalantri, Thanks for quick response. I know that the ftp task is not avilable in any release of NAnt and NAnt-Contrib. I done the changes you suggest but the same result i am getting. Thanks & Regards Vinod Soni Enterprise Architecture (Humana) Desk: +91-120-4398818 Mobile:+91-9899694444 "Kalantri, Jeebitesh" <Jeebitesh_Kalantri@ADP.com> 02/15/2011 07:17 AM To Vinod Soni <vs...@hu...> cc "nan...@li..." <nan...@li...> Subject RE: [nant-dev] FTP task not working Hi Vinod, First of all this task is not core functionality of NANT Library . But as you can see below:- <include name="**" /> It should have been :- <include name="*.*" /> Please reply back if you have any issues. Regards, Jeebitesh Kalantri From: Vinod Soni [mailto:vs...@hu...] Sent: Tuesday, February 15, 2011 5:23 PM To: nan...@li... Subject: [nant-dev] FTP task not working Dear Team, I downloaded a FTP task from www.liveingit.de site. Which is used to transfer contents from local system directory to over ftp location. The written the following script to transfer content. but it's getting the error when i try to run this. Kindly help if anybody have idea about the same or know about some other FTP task. <target name="MyFTP" description="Copies files to target deploy folder (It may be the FTP location)."> <property name="ftptask" value="C:\Nant Version\FTP\ftptask-v1.0.85.41-bin\FTPTask\bin\Release\ftptask.dll"/> <property name="remotehost" value="ftp://idea.com"/> <property name="username" value="systemadmin"/> <property name="pwd" value="123456"/> <property name="remote-dir" value="/TESTPFP/test"/> <property name="source" value="C:\PFP\Src\Hosts\Humana.Provider.PFP.Web"/> <loadtasks assembly="${ftptask}" /> <connection id="myConn" server="${remotehost}" username="${username}" password="${pwd}"/> <ftp createdirs="true" exec="true" connection="myConn" remotedir="${remote-dir}" showdironconnect="true"> <put type="ascii" localdir="${source}" flatten="true"> <include name="**" /> </put> </ftp> </target> Error: System.Net.Sockets.SocketException: The requested name is valid and was found in the database, but it does not have the correct associated data being resolved f or at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6) at System.Net.Dns.Resolve(String hostName) at EnterpriseDT.Net.Ftp.FTPClient..ctor(String remoteHost, Int32 controlPort, Int32 timeout) at EnterpriseDT.Net.Ftp.FTPClient..ctor(String remoteHost) at Sourceforge.NAnt.Ftp.Tasks.FTPTask.ftpConnect() at Sourceforge.NAnt.Ftp.Tasks.FTPTask.Work() at Sourceforge.NAnt.Ftp.Tasks.FTPTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() I shall be thankful to you for the help. Thanks & Regards Vinod Soni Enterprise Architecture (Humana) Desk: +91-120-4398818 Mobile:+91-9899694444 The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information. ________________________________ This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system. The information transmitted is intended only for the person or entity to which it is addressed and may contain CONFIDENTIAL material. If you receive this material/information in error, please contact the sender and delete or destroy the material/information. |