I create several temporary files in my asp.net app, and I need to delete them when the user is done using them.
I tried
void Session_End(object sender, EventArgs e)
{
System.IO.File.Delete(@"C:\Temp\test.doc");
}
but it's not working.
Any ideas?
you must grant permissions to iisuser at this folder