Hi,
I too had the same problem. Actually, in my case, i need to create the folder(s) in the path as - C:\inetpub\wwwroot\ [web app folder]\WebApp\ [create folder here]. Now i was to copy files (.jpg, .bmp. .gif....) in to this folders and according to the functionality remove them from these folders. According to the solution provided above, i tried it but didn't work out. I had a work around for that. I created a folder in a same drive with another name and then move the folder which is to be deleted to that particular folder. This work out for me and application also didnt gave me any error.
If anyone need code for the workout which i had done, do reply to this mail, i will be happy to help you guys.
----------------------------------------------------------------------------------------------------
If you find this reply suitable for your query, do click "Answer".
Thanks
Hardik