Fw: FTP task not working
Vinod Soni <[email protected]> Tue, 15 Feb 2011 06:56:30 -0500
| Newsgroups | gmane.comp.windows.dotnet.nant.devel |
|---|---|
| Message-ID | <OF9D1696A3.731DEA16-ON85257838.004191C2-85257838.004199F4@humana.com> |
FYI.. Kindly help Thanks & Regards Vinod Soni Enterprise Architecture (Humana) Desk: +91-120-4398818 Mobile:+91-9899694444 ----- Forwarded by Vinod Soni/Non Employee/Humana on 02/15/2011 06:56 AM ----- Vinod Soni/Non Employee/Humana 02/15/2011 06:52 AM To [email protected] cc Subject 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. ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ nant-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-developers