Quote Originally Posted by dunfiddlin View Post
Every one of the 16 (alleged) methods will give you the same error in this circumstance. ASP is a web language and therefore does not have default access to the local file system (for rather obvious reasons!) This has nothing to do with the delete method, it's a security safe guard which prevents people setting up malicious websites that can wipe your harddrive without batting an eyelid!
That's why you assign access to the AppPool Account to the specific Folder security options (that is in the file system I have assigned Network Service to have full control over that folder, and have set the Application Pool to run under the Network Service account. I can write files with no issue to the folder from the web page). And the page has no problem with access outside the gridview, just inside the gridview. It can delete fine with just a button and a text box on the page.

So my next step was to see if this was some quirkiness with System.IO.File.Delete embedded in the gridview.