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...Log Application Shutdown reason...Log Application Shutdown reason...
Previous
 
Next
New Post
3/8/2007 11:21 PM
 
mitchel.sellers@gmail.com wrote

Frankt,

That code you posted for the shutdown reasons is very helpful. 

Is it possible that I can port that over to C# an post it on my blog?  I will give credit to this post, I just have a need for something like this in each one of my hosted applications!

 

Have at it!!  Just change the syntax.  I'd use a switch statement myself:

switch (shutdownreason)

{

   case System.Web.ApplicationShutdownReason.BinDirChangeOrDirectoryRename:

shutMessage = "The AppDomain shut down because of a change to the Bin folder or files contained in it."

break;

etc...

}

Also, you may want to take a look at this:

http://weblogs.asp.net/scottgu/archive/2005/12/14/433194.aspx

 

 


Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
New Post
3/9/2007 1:11 AM
 
Great thanks! 

Yeah I was planning on changing the logic around a bit....thanks again!

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
4/22/2007 4:08 PM
 

Thanks for this great idea. I added this to core today, so it will be present in next version.


Vicenç Masanas
Banyoles, Girona - Spain

Disgrafic.com    PSD to DNN
 
New Post
1/30/2013 2:11 PM
 
Hi, Mitchel and Vincenc, if I read this correctly, this logic has been incorporated into DNN. Where would a person look to read the output this code generates? I am trying to find out why my site keeps restarting. Thanks! Mark Buelsing
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Log Application Shutdown reason...Log Application Shutdown reason...


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