locked
FTP access denied when trying to access client pc RRS feed

  • Question

  • User1055243870 posted
    I've done a ftp apps using asp.net. The problem is that when I'm trying to upload a file from my c drive (eg. c:\me.jpg) i get an error "Access denied" The error aoocurs at : input = New FileStream(sFileName, FileMode.Open) the sFileName is at "c:\me.jpg"... Thanks in advance
    Sunday, February 20, 2005 8:57 PM

All replies

  • User989702501 posted
    Do the user running the app has permission to write the file ? if not, grant the process and request identity at least WRITE NTFS permissions. Try filemon (sysinternals.com) to trace.
    Sunday, February 20, 2005 9:39 PM
  • User1055243870 posted
    The problem is not at the ftp site... it's at when I'm trying to pick the file from "c:\me.jpg"... How do i assign permission? A sample pls? Thanks
    Sunday, February 20, 2005 11:24 PM
  • User989702501 posted
    Ok. now. I would assume you app, will login to ftp and then read the file, right ? can you use ftp.exe to do the above ? login and download the file. the error msgs is access denied. so it's most likely permission issue. to configure permission, right mouse on the files/folder, security tab, then assign accordingly.
    Monday, February 21, 2005 2:46 AM