Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...4.3.0 Frequent Application Restarts By Itself4.3.0 Frequent Application Restarts By Itself
Previous
 
Next
New Post
6/29/2006 1:14 AM
 
This is a big problem for DNN 4x.   The cause is asp.net 2.0.

A possible solution is to turn off the file change notification, but this defeats the purpose of dynamic code compilation model: http://support.microsoft.com/kb/911272/en-us
 
New Post
8/24/2006 4:21 PM
 

 

Any resolution to this other then a hotfix? My provider wont install a hotfix (and is trying to deny this slows the site down). It seems to start/stop every few clicks by a user hundreds of times a day.

 

 

 
New Post
8/24/2006 4:21 PM
 

 

Any resolution to this other then a hotfix? My provider wont install a hotfix (and is trying to deny this slows the site down). It seems to start/stop every few clicks by a user hundreds of times a day.

 

 

 
New Post
8/24/2006 8:03 PM
 
ecktwo wrote
Note that the web app shutdown is not caused by the changes in the file system
, it is because of the FileSystemWatcher's buffer overflow......sadly, what this means is that if the AppDomain is restarted, then there is a performance hit while the AppDomain is started up and pages are recompiled on their first hit. Furthermore, session state that is running In-Process is lost.

So is this fact or fiction?

It is a fact. Actually it is a major issue with ASP.NET 2.0 and DotNetNuke.  I posted this in the benefactors forum, but I'll post it here to help clarify the issue...

When DotNetNuke 4.x File Manger simply deletes a folder, the entire application is restarted.

Synopsis

When folders within an ASP.NET 2.0 application are deleted by an ASP.NET application such as DotNetNuke (or added/modified/deleted by Windows Explorer) they restart the application. This causes:

  • immediate shutdown
  • recompile on startup
  • the default inproc session state is lost
  • a predictable performance hit

This rather unexpected behavior is with ASP.NET 2.0 and may explain some of new issues with DNN 4.x.

 

ASP.NET 1.x typically restarted the AppDomain on changes to global.asax, web.config or the /bin folder. ASP.NET 2.0 uses File Change Notifications (FCN) to monitor all folders within the application root, not just the root and App_xxx folders.

 

Proof of Concept

Using DotNetNuke

1)      Login as Admin/Host

2)      Select Admin|Log Viewer

3)      Note last entry and timestamp

4)      Select Admin|File Manager

5)      Enter new folder xxx123 and click the new folder icon

6)      Select Admin|Log Viewer

7)      Note last entry and timestamp

8)      Select Admin|File Manager

9)      Expand the folders and select xxx123 and click the delete folder icon

10)  Select Admin|Log Viewer

11)   Note new shutdown and startup events caused by folder deletion

 

Using Windows Explorer

1)      Login as Admin/Host

2)      Select Admin|Log

3)      Note last entry and timestamp

4)      Navigate Windows Explorer to
c:\inetpub\wwwroot\dotnetnuke4\portals (or equivalent)

5)      Add a new folder to portals

6)      Select Admin|Log Viewer in browser

7)      Note shutdown and startup events caused by adding|renaming|deleting the folder

 

Workaround

The only known workaround at this time is to use directory junctions to avoid monitoring and restarting the AppDomain. This may or may not be possible as it requires user permissions outside of the application sandbox and only works with NTFS formatted drives. There is a way to disable FCN in IIS, but it defeats the purpose of intended behavior. At this time there is no known fix to revert to ASP.NET 1.x behavior.

 

References

ASP.NET v2.0 - AppDomain recycles, more common than before

http://weblogs.asp.net/owscott/archive/2006/02/21/438678.aspx

 

Deleting ASP.NET 2.0 Application Sub-Directories Shuts Down the AppDomain

http://blogs.msdn.com/toddca/archive/2005/12/01/499144.aspx

 

NTFS junction points and 'Deleting ASP.NET 2.0 Application Sub-Directories Shuts Down the AppDomain'

http://owasp.net/blogs/dinis_cruz/archive/2005/12/08/274.aspx


FIX: ASP.NET 2.0-connected applications on a Web site may appear to stop responding
http://support.microsoft.com/kb/911272/en-us


Dwayne J. Baldwin
 
New Post
8/24/2006 9:48 PM
 
i didn't know all that - nice writeup.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...4.3.0 Frequent Application Restarts By Itself4.3.0 Frequent Application Restarts By Itself


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out