I have a project in which we need to either upload file OR scan a directory for new files and process them, store their data in a database, etc. We are running c#.NET on a windows server with Lunar Pages.
The problem I have running in to, in short:
Could not find a part of the path 'f:\windows\system32\inetsrv\myFiles\myFile.csv
This happens after uploading a file, using the SaveAs function and then trying to open the file. It also happens when I create a directory and upload the files to the server via FTP and attempt to open them.
String myFilePath = Directory.GetCurrentDirectory() + "\\myFiles\\myFile.csv";
StreamReader fileStream = new StreamReader(myFilePath);
Any help would be greatly appreciated.