AspNetAtoms.com daily updates on ASP.NET Tutorials, Articles, Authors and more. Subscribe to our newsletter and receive updates on ASP.NET resources on the Internet.

Categories

Recent Posts

Restart ASP.NET apps Programmatically, Log Application_End Events, and use Web Management logging : Peter A Bromberg

Saturday, January 10 2009

Shows how to instrument your ASP.NET application for custom restarting of the app, logging exceptions and using the built-in ASP.NET 2.0 Management Events and Auditing providers. Recently I put a new web site online at a new hosting company, and one of the first things I noticed was that the application was restarting way too often, and taking a very long time to restart as well. This is not a large application, and the initialization that I do when the app starts should only take about 1/2 of a second, so I knew there was either something wrong with my code somewhere that was being affected only when the app ran in production on the shared hosting server, or that there was something wrong with the hosting company's setup and maybe I should find a better hosting company. The app ran fine on my local development machine, and I had done some load testing already that indicated the app was fast and could handle a pretty significant load. It was one of those "It runs great on my machine!" cases....

Read More:
Restart ASP.NET apps Programmatically, Log Application_End Events, and use Web Management logging : Peter A Bromberg
Also See:
Building Model-View-Presenter applications with MVC# framework : Oleg Zhukov
Security Features in ASP.NET 2.0 : Richard Bean
Efficiently Paging Through Large Amounts of Data : Scott Mitchell
Working with Email using ASP.NET 2.0 : Jason N. Gaylord
Using Syndication Classes to Read RSS Feeds : Bipin Joshi

Post your comment

Comment