Website diagnostics page to diagnose your ASP.NET website

Whenever you change web.config file or deploy your website on a new environment, you have to try out many relevant features to confirm if the configuration changes or the environment is correct. Sometimes you have to run a smoke test on the website to confirm if the site is running fine. Moreover, if some external database, webservice or network connectivity is down, it takes time to nail down exactly where the problem is. Having a self-diagnostics page on your website like the one you see on your printer can help identify exactly where’s the problem. Here’s a way how you can quickly create a simple self-diagnostics page in a single page without spending too much effort. This diagnostics page tests for common configuration settings like connection string, ASP.NET Membership configurations, SMTP settings, <appSettings> file paths and URLs items and some application specific settings to confirm if the changes are all correct.

Diagnostics page

Read how to build such a diagnostics page:

http://www.codeproject.com/KB/aspnet/selfdiagnostics.aspx

Vote for me if you find this useful.

6 comments

  1. Hemanshu says:

    I have 300 web apps in my company. How can I create a dashboard which shows me the health of every app. At-least red-amber-green on various parameters and also overall.

  2. mike johnson says:

    this is cool, very cool. with 300 websites, I would probably have them render their results to a file. I would then set up a job to poll them all periodically to push results into the database or file share. those that did not report at a specific time can be assumed to be down, but those taht do publish can interpret the posted data and render it into the management interface.

  3. Abed Elkassih says:

    This is one cool idea, saved time.

  4. … track backe bei http://blakesantacroce.sabaiii.com/2010/11/08/elles-aussi-etre-offre-transport-ouverte-sur-les-ordres/ ……

    grand , votre blog modèle est réellement bon , je suis chasse pour un nouveau disposition style pour mon moncler doudoune personnel site web , j’aime vôtre, maintenant Je vais aller cherchez le même thème !…

  5. Derk says:

    I really like this idea, however I am just getting back into programming and would really like to have a sample project to use as an example to learn from. Do you have one which you are willing to share?

    Thanks in advance!

Leave a Reply

Your email address will not be published. Required fields are marked *