Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: System.IO.DirectoryNotFoundException: Could not find a part of the path
ssvsiruvuri
svsiruvuri@pbsj.com

From: dallas, TX USA
Posts: 3
Member Since: 02/07/06
posted February 7, 2006 5:24 PM

Hi,

I am having an issue uploading a file from my local box to an FTP location. When I pick up the file from my local box and upload , it is working fine..but when I put the code on my development server, I am getting the following exception:

"System.IO.DirectoryNotFoundException: Could not find a part of the path "C:\upload\db1.mdb". at System.IO.__Error.WinIOError(Int32 errorCode, String str) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at TxDOT_OTS.UploadFieldData.btnSubmit_ServerClick(Object sender, EventArgs e)"

Herez a part of the code i am using:
uplFilePath = uplFile.PostedFile.FileName;
rmtFilepath = ftp_fldrName + "/" + uplFileName;
file = u_ftp.Put(uplFilePath ,rmtFilepath);

Can anyone please tell me the fix to do away with this??

Thanks
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted February 7, 2006 5:33 PM

You are trying to access a file called ""C:\upload\db1.mdb" that either does not exist or you don't have permission to access.
Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX