IO.File.Delete works in debug mode but throws security exception in run mode
问题 Has anyone ever seen an issue where IO.File methods work with the debugger attached but not at normal run-time? IO.File.Delete gives this exception at run-time but not if the debugger is attached via VS (which runs in admin mode). "Access to the path 'C:\AppName\App_Data\BodyPart_7416da26-4b8f-4d08-9a4a-fd3a9bf02327' is denied." I have verified IIS_IUSRS has full permissions on the \App_Data directory. BodyPart_* is a file name generated by ASP.Net, not a sub-directory. One other person