Ten essential tools for building ASP. NET websites (2)

Source: Internet
Author: User
Tags reflector pingdom

Normal running time

After a website is published, you certainly hope that your website will not encounter any problems and will remain in normal operation. Now, I use the following tools to monitor the "Superexpert.com" website and make sure it remains in normal operation.

4, ELMAH

ELMAH is short for Error Logging Modules and Handlers for ASP. NET. ELMAH allows you to record any errors on your website. In the future, you can re-check these errors. You can download ELMAH from the ELMAH official website for free at http://code.google.com/p/elmah /.

ELMAH supports both ASP. NET Web Forms and ASP. net mvc. You can configure ELMAH to store various errors (XML files, Event Logs, Access databases, SQL databases, Oracle databases, or computer RAM .) You can also ask ELMAH to email you the error message when an error occurs.

By default, in a website with ELMAH installed, you can access elmah by requesting the ELMAH. axd page. This is the appearance of the elmah page of the "Superexpert.com" website (this page is password-protected because some confidential information may be leaked in an error message .)

If you click an error message, you can see the original ASP. NET yellow screen error message (although this error message will never be displayed to real users ).

I used the brand new ASP. NET Package Manager NuGet (formerly called NuPack) to install ELMAH. For details about NuGet, refer to Scott Guthrie's blog: Workshop. You can download NuGet from CodePlex: http://nuget.codeplex.com /.

5, Pingdom

I use Pingdom to verify that the Superexpert.com website is always running. You can register Pingdom by browsing "Pingdom.com. You can use Pingdom to monitor a website for free.

On the Pingdom website, you can configure the frequency for Pingdom to ping your website. I verify that the Superexpert.com website is always running every five minutes. I use the Pingdom service to verify whether it can retrieve the string "Contact Us" from the home page of the website ".

If your website goes down, you can configure Pingdom to send an alert via email, Twitter, SMS, or iPhone. I am using this Pingdom iPhone application:

6. Host Tracker

If your website goes down, you need some methods to determine whether this is a problem with the local network or whether your website goes down for everyone. I use a website called Host-Tracker.com to check the extent to which a website is down.

This is the result of Host-Tracker when the "Superexpert.com" website can be pinged from all over the world:

Note: Host-Tracker can ping the "Superexpert.com" website from 68 locations (including Roubaix, France, Scranton, and PA.

Debugging

The "Debugging" I mentioned here has a wide range of meanings. When building a website, I use the following tools to verify that I have not made any mistakes.

7. HTML Spell Checker

Why does Visual Studio not have a built-in spelling checker? I don't know-I think this is incredible. However, fortunately, a free spelling checker is written by a former member of the ASP. NET team. You can use this spell checker on the ASP. NET page.

I found that a spelling checker is essential. Think that your spelling ability is perfect, just deceiving yourself. When I really run the spelling check tool and find all my spelling mistakes, I can't wait to find a place to crack.

The quickest way to add HTML Spell Checker Extension to Visual Studio is to select the "Tools" menu item in Visual Studio and click "Extension Manager ". Click "Online Gallery" and search "HTML Spell Checker ":

8. iis seo Toolkit

If people cannot find your website through Google, it is better not to build this website. Microsoft provides an excellent IIS extension called "IIS Search Engine Optimization Toolkit" (for details about the IIS Search Engine Optimization Toolkit, refer to: http://www.iis.net/download/seotoolkit ), you can use it to detect problems that may affect the page ranking. You can also use it to quickly create a sitemap for your website. You can submit This sitemap to Google or Bing. You can even generate a sitemap for an ASP. net mvc website.

This is an overview of the analysis report on the "Superexpert.com" Website:

Note: The "Sueprexpert.com" website has many problems. For example, the hyperlinks on 65 pages have expired. You can further view the details of these problems and find out the location and specific page of these problems.

9, LinqPad

If your ASP. NET Website needs to access a database, you should use the object framework of LINQ to Entities. Using LINQ, some magical queries written in C # are converted into SQL queries. If you are not careful when writing a LINQ query, you may accidentally build a website with poor performance.

LinqPad (LinqPad's official site: http://www.linqpad.net/) is a free tool that lets you experiment with your LINQ queries. It even supports Microsoft SQL CE 4 and Azure.

You can use LinqPad to execute a LINQ to Entities query and check the result. You can also use it to view the SQL statements executed on that database:

10,. NET Reflector

I use. NET Reflector every day .. NET Reflector this tool allows you to decompile an assembly into C # Or VB. NET code. When you do not have the real source code, you can use. NET Reflector to view the "source code" of an assembly ". You can download the free version of. NET Reflector from the Redgate Website: http://www.red-gate.com/products/reflector /.

I mainly use. NET Reflector to help me figure out how the code works internally. For example, to better understand how MVC Image helper works, I used. NET Reflector to decompile the Sprite and Image Optimization Framework. This is part of the disassembly code of the Image helper class:

Summary

In this blog, we discussed several tools I used to build the "Superexpert.com" website. I use these tools to improve the performance of the "Superexpert.com" website, improve the SEO (Search Engine Optimization) of the "Superexpert.com" website, and ensure the normal running time of the "Superexpert.com" website, or debug the "Superexpert.com" website. All the tools discussed in this blog are free of charge. In addition, all these tools support both ASP. NET Web Forms and ASP. net mvc.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.