| Dart Home | PowerTCP FTP for .NET | Custom Development | Reply | PowerTCP FTP for .NET Topics | Forums |
| Author | Forum: PowerTCP FTP for .NET Topic: Connection attemp failed - error message |
| Deva From: chennai, NY India Posts: 4 Member Since: 01/28/03 |
posted February 27, 2003 10:11 AM Dear Sir, We are exploring dart ftp software, we have created a sample application using "Dart.PowerTCP.Ftp" namespace. We used Ftp class from this namespace to upload file. The code snippet is given below for your reference, using this we are successfully able to upload files from the local environment. Protected WithEvents FileToUpload As System.Web.UI.HtmlControls.HtmlInputFile If Not FileToUpload.PostedFile Is Nothing Then Dim objPostedFile As HttpPostedFile = FileToUpload.PostedFile Dim objFTP As New Ftp() objFTP.Server = Request.Form("txtHost") objFTP.Username = Request.Form("txtUser") objFTP.Password = Request.Form("txtPassword") Dim objStream As Stream = objPostedFile.InputStream objStream.Position = 0 objFTP.Put(objStream, New FileInfo(objPostedFile.FileName).Name) objFTP.Close() objFTP = Nothing Response.Write("File uploaded successfully") End If When we execute the same page over the net, we get the following error. A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond] c.c(Delegate A_0, Object[] A_1) +304 Dart.PowerTCP.Ftp.Ftp.Put(Stream localStream, String remoteFileName) +153 ETC.DartFileUpload.SaveUploadedFile() ETC.DartFileUpload.Page_Load(Object sender, EventArgs e) System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +29 System.Web.UI.Page.ProcessRequestMain() +724 Earlier, we used to get an error related to 'view state'. We would like to take your help to overcome these errors, we look forward for your help, thank you. Regards, Devendran R. |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted February 27, 2003 12:49 PM Hi Devendran, Please send your response to this post to support@dart.com, instead of posting on the forum. Is the timeout occurring for the command connection, or the data connection? Are you able to connect from the same machine using command line Ftp? Please use the Trace event to create a log of the session, and include this with your email. Thanks, -ken |
| Reply | PowerTCP FTP for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|