This should be a problem bug to find. I keep getting error message "Could not find a part of the path "C:\Inetpub\wwwroot\WebApplication7\055070021FEB-04DET.csv" when trying to read records. This is not the path I saved the file to on the server.
string sFileDir= "c:/hosting/webhost4life/member/vcn770/ASPX/";
string sFileName = System.IO.Path.GetFileName(filUpload.PostedFile.FileName);
filUpload.PostedFile.SaveAs(sFileDir + sFileName);
StreamReader reader = new StreamReader(filUpload.PostedFile.FileName); ???? is there something wrong with this code?????
readcontents = reader.ReadLine();