| Dart Home | PowerTCP FTP for ActiveX | Custom Development | Reply | PowerTCP FTP for ActiveX Topics | Forums |
| Author | Forum: PowerTCP FTP for ActiveX Topic: Client and Server path |
| usagi From: Yokohama, Japan Posts: 11 Member Since: 10/10/03 |
posted October 15, 2003 5:54 AM i am trying to create a web application to upload files to a server from a listbox. if i execute the code, the following error message is returned: System.IO.DirectoryNotFoundException: Could not find a part of the path "D:\TESTDATA_20031004\TEST01.dwg". at c.c(Delegate A_0, Object[] A_1) at Dart.PowerTCP.Ftp.Ftp.Put(String localFileName, String remoteFileName) at client.WebForm1.LoopFiles_dart() in c:\inetpub\wwwroot\client\client.aspx.vb:line 247 the line 247 is as follows: dartFTPCom.Put(lstFiles.Items(LoopCtr).text, myFile) is the server trying to locate the file on it's local drives? (the server's drive D: is the CD-ROM drive) also, if the file is located on a mapped network drive, the error "Logon Failure: unknown user name or bad password" is returned. urgently needing your help. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted October 15, 2003 8:56 AM It's looking for the drive on whatever machine is running the code. In this case it's the server. The Username error would probably be the same as your last post. The file is not available to the user that the process is running as. |
| usagi From: Yokohama, Japan Posts: 11 Member Since: 10/10/03 |
posted October 15, 2003 8:45 PM is there a way to make the code look up the files from the client side? |
| usagi From: Yokohama, Japan Posts: 11 Member Since: 10/10/03 |
posted October 16, 2003 2:20 AM i also tried using httppostedfile for the localfilename of the Put statement, but the same error message results. what's wrong here? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted October 16, 2003 8:45 AM I'm sorry, but I don't understand what you are saying. Can you please describe it a different way? Use actual filenames (both local and remote). Also, please post the code you used to call Put, then post the exact error message you got when you called Put that way. |
| usagi From: Yokohama, Japan Posts: 11 Member Since: 10/10/03 |
posted October 30, 2003 3:35 AM sorry for the long delay, had quite a long assignment overseas... anyway, here's my problem: i am trying to upload files listed in a listbox. when i click on the upload button, this error is displayed: System.IO.DirectoryNotFoundException: Could not find a part of the path "D:\TESTDATA_20031004\TEST01.dwg". at c.c(Delegate A_0, Object[] A_1) at Dart.PowerTCP.Ftp.Ftp.Put(String localFileName, String remoteFileName) at client.WebForm1.LoopFiles_dart() in c:\inetpub\wwwroot\client\client.aspx.vb:line 247 the line 247 is as follows: dartFTPCom.Put(lstFiles.Items(LoopCtr).text, myFile) you said that the codes are executing server, hence the codes search for the path in the server. how can i get around this (execute the ftp command from the client side)? also, i would like to create a modal form that checks the status of the upload (hereby disabling the web form from being clicked around while the files are being transfered). is this possible? if so, can you give me a clue or two? thanks in advance |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted October 30, 2003 8:50 AM I'm not sure how to do what you are trying to do with the ActiveX component, but I think it would help a great deal if you got the trial of our PowerTCP FTP for .NET product. There is a sample ASP app included that will probably give you lots of ideas that you can apply to what you are doing. |
| usagi From: Yokohama, Japan Posts: 11 Member Since: 10/10/03 |
posted November 7, 2003 12:16 AM thanks for the tips, Tony. i have had my boss buy the component, and i'm implementing it in my project. i have also downloaded and tried your samples. the have been of great help. is there a way to show a file upload progress dialog? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted November 7, 2003 8:51 AM This thread may help: http://support.dart.com/postings?topicid=2890 |
| Reply | PowerTCP FTP for ActiveX Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|