Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application recycling logging
Message
From
19/10/2010 08:13:17
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01485842
Message ID:
01486088
Views:
28
>IIRC, the log showed the recycling was being triggered by more than the default recompiles being counted. If we assume this reason is correct then it might be interesting to use something like FileMon to track exactly what is happening in the filesystem.
>
>Also there's a posting towards the bottom of this thread that, although old, is interesting:
>http://forums.asp.net/t/970884.aspx
>
>Snippets:
>
>Basically, ASP.Net 2.0 runtime uses a FileSystemWatcher to monitor each subdirectory in a web app's root folder. It not only picks up files that got modified, but also files whose last access time changed . If the changes in the folders reach over a certain threshold, ASP.Net will initiate a new deployment.
>
>The reason Microsoft monitors the last access times, besides the last modified times of files and folders, is that when you copy a file to overwrite an existing one, file system will change the file's last access time, while leaving the last modified time alone.
>
>Note that a folder's last access time gets changed even when a process lists the files of the folder without touching any file in it.
>
>But that post is over four years old - I'd expect MS to have modified the behaviour as part of a fix.......
>
>(BTW, when looking at this thread via 'View Entire Thread' I can't find the attachments on earlier posts)

I have a robot procedure which creates static files under the Static directory. This one is under the root. But, the same robot does the same thing on the other Web site. The other Web site is not affected by that. I would also do not understand why ASP.NET would trigger a restart everytime a certain number of files under a sub directory gets changed. This wouldn't make any sense if they would have designed ASP.NET like that as the prime goal of a Web site is to evolve. Thus, it is normal a certain number of files will be added and changed during its lifetime.

Another issue in regards to that is that members here can upload and change their photos. This is in Photo and Photo2 directories. Those are also under the root. Another one is the directory for the attached files to here. BTW, the message with the two attached files is message #1485943.

I also have a Temp directory for various reasons.

So, does this mean in order to avoid this situation, we would have to have static Web site where nothing would change under it? But, as I said, the other Web site is not affected by that.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform