Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleting a directory results in application restart

I have an application with 2 directories (books and export).
If we create a book or a page of a book in the application a directory is added with the id of the page (this is for uploading resources).
If we delete a page, the page (and it's directory) is removed from the database and the filesystem.

However this resulted in a session loss (even an application restart). I've looked up some thing on google and found the following link.
It seems to be a problem in ASP.NET 2.0 (and 3.5).

We are now thinking about writing a service that will clean up the directories at night.
But there has got to be another solution for this no?
Oh and putting the directory outside the virtual directory is not an option.

like image 321
user29964 Avatar asked Dec 09 '22 22:12

user29964


1 Answers

Try disabling the monitoring of File System. This will prevent your session alive. This article may be usefull for you.

like image 162
Sachin Gaur Avatar answered Jan 01 '23 04:01

Sachin Gaur