Uploading Files!!!

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2008
Posts: 6
Reputation: asp_seetha is an unknown quantity at this point 
Solved Threads: 0
asp_seetha asp_seetha is offline Offline
Newbie Poster

Uploading Files!!!

 
0
  #1
Nov 11th, 2008
Hai ,

I am trying to upload a file from a local disk to server. Itz working fine when I upload from d: or c: drives. But it is not uploading When I upload from desktop or Mydocuments. It is giving the following error.

System.IO.FileNotFoundException: Exception from HRESULT: 0x800A0035 (CTL_E_FILENOTFOUND).

But actually the file is there. My coding is :

  1. Dim fs, f
  2. fs = Server.CreateObject("Scripting.FileSystemObject")
  3. f = fs.GetFile("C:\Documents and Settings\seetha\My Documents\fresher.doc")
  4. f.copy(Server.MapPath("Attachments\" & f.name))
  5.  

Whatz the problem?????

Thanks in Advance

Seetha
Last edited by peter_budo; Nov 12th, 2008 at 5:47 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 66
Reputation: reach_yousuf is an unknown quantity at this point 
Solved Threads: 12
reach_yousuf reach_yousuf is offline Offline
Junior Poster in Training

Re: Uploading Files!!!

 
0
  #2
Nov 11th, 2008
the error decription is self explainatory. i.e is file "yourfile.doc" is not available on the specified path.

isfileexist(filename) to see if found or not

Mark as solved if it helps u!!!

Regards
Yousuf
Software Developer
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 6
Reputation: asp_seetha is an unknown quantity at this point 
Solved Threads: 0
asp_seetha asp_seetha is offline Offline
Newbie Poster

Re: Uploading Files!!!

 
0
  #3
Nov 12th, 2008
I have checked and the file is there. I opened thro' the run command, itz opening. But thro coding, Not only that file, any file from desktop or mydocuments is not opening. Other locations no problem.

Please help me to solve this
Last edited by asp_seetha; Nov 12th, 2008 at 6:40 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC