I'm trying to delete a file using System.IO.File.Delete(file).. however I keep getting the error :
System.UnauthorizedAccessException: Access to the path .(file path here). is denied.
I've checked the permissions of the file in question and the asp.net identity has full permissions and so should be able to delete the file?
Any reason this might be happening?