right now, im using Windows Vista..

in Windows XP, deleting a file is working with this code

Code:
System.IO.File.Delete("C:\testdelete.jpg")
But in Windows Vista, i encounter this message: Access to the path 'C:\testdelete.jpg' is denied.

why its happening? what is the solution for this?