J
Julia B
Hi all
I've got an ASP.Net 2.0 web application, where users are uploading files to
the web server from a C drive on a networked pc.
The upload and save work fine, but once done, I want the original file on
the pc D drive to be deleted.
The code I'm using is:
My.Computer.FileSystem.DeleteFile(Me.newCalibrationRecord.RecordLocation)
Me.newCalibrationRecord.RecordLocation is "C:\DirectoryName\Filename".
I get an error message saying the file cannot be found despite the fact that
I know it's there. I've also checked permissions and the ASP.NET account has
the correct permissions to the pc's C drive.
Is it something to do with the fact that the application is looking on the
webserver's C drive not the user's local machine?
Thanks in advance
Julia
I've got an ASP.Net 2.0 web application, where users are uploading files to
the web server from a C drive on a networked pc.
The upload and save work fine, but once done, I want the original file on
the pc D drive to be deleted.
The code I'm using is:
My.Computer.FileSystem.DeleteFile(Me.newCalibrationRecord.RecordLocation)
Me.newCalibrationRecord.RecordLocation is "C:\DirectoryName\Filename".
I get an error message saying the file cannot be found despite the fact that
I know it's there. I've also checked permissions and the ASP.NET account has
the correct permissions to the pc's C drive.
Is it something to do with the fact that the application is looking on the
webserver's C drive not the user's local machine?
Thanks in advance
Julia