I just want to delete the Directory which is in the project folder.
That folder having all web sharing authority and permission.
The problem is arising when i am deleting the folder.
Folder is deleted from the serverpath(Virtual Directory).
But my problem is that when i complete my task and click on any control it will redirect me to the Login page with the return url as there is a secure authentication on the root directory is available
For more details, check this article from MSDN Blog and read Why does an application domain recycle? from here
ASP.NET Case Study: Lost session variables and appdomain recycles
and also check this one Deleting ASP.NET 2.0 Application Sub-Directories Shuts Down the AppDomain