Delete directory recursively throwing an error
-
Hi all, I'm using "Directory.delete(folderpath,true)" for deleting a folder containing sub folders and files from server. When i'm trying to delete it, it throws an error saying 'Directory not empty'. All the files and subfolders are getting deleted, but the directory is still there. More over, it removes all the session variables also. How can i fix this issue? Please help.
-
Hi all, I'm using "Directory.delete(folderpath,true)" for deleting a folder containing sub folders and files from server. When i'm trying to delete it, it throws an error saying 'Directory not empty'. All the files and subfolders are getting deleted, but the directory is still there. More over, it removes all the session variables also. How can i fix this issue? Please help.
Nicejith wrote:
it removes all the session variables also.
Is it deleting ASP.NET folders like app_code, app_browser ,bin. Then application will restart and that will end all sessions.
-
Nicejith wrote:
it removes all the session variables also.
Is it deleting ASP.NET folders like app_code, app_browser ,bin. Then application will restart and that will end all sessions.