Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: ASP.NET .NET Dealing with errors and tracing in ASP.NET Tutorial

In this article we discuss dealing with errors. We'll work with debugging issues, tracing, and custom error generation.

Tutorial Details:

ASP.NET .NET Dealing with errors and tracing in ASP.NET Tutorial
In this article we'll see what you can do to get more information about these errors to help you fix the problem that causes them.

Turning on the debugger is the first thing you'll have to do if you got some nasty error. There are some errors which don't have the necessary details if debug is not turned on and if that's the case, then you'll receive a message near the error that tells you to enable the debug mode and it also gives instructions on how to do this. I'm going to mention it here anyway. Debugging can be enabled for the entire application (for all the pages) by setting a small tag inside Web.config :

Chances are you already have this tag inside Web.config and that the debug attribute is already set to true , so you only need to modify it if you want to turn debugging on or off.
If you want to enable/disable debugging on only one page you can change the Page tag located inside the .aspx file and add the debug attribute to it, like in the following example:
<%@ Page debug="true" %>
Using custom error pages
When a user hits a '404 - Page not found' page on your website not only he is disappointed but he's also not sure if the error is from your website's server or from him. Also the error pages displayed by the browsers are dull and don't provide much help to the visitor.
Custom error pages are a great way to make them less dull and most important - be helpful to the visitor. For example if he hits a 404 error page you can explain to him on that page that the URL was not found and if he wants, he can contact the administrator using the form below. Or if he receives a 403 error you have the chance to explain him on that page that he can't access the specified URL because he is not authorized.


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
ASP.NET .NET Dealing with errors and tracing in ASP.NET Tutorial

View Tutorial:
ASP.NET .NET Dealing with errors and tracing in ASP.NET Tutorial

Related Tutorials:

JavaWorld - Net News Central
JavaWorld - Net News Central
 
Build your own languages with JavaCC - JavaWorld December 2000
Build your own languages with JavaCC - JavaWorld December 2000
 
XML messaging, Part 1 - JavaWorld March 2001
XML messaging, Part 1 - JavaWorld March 2001
 
Breathe intelligence into Java - JavaWorld April 2001
Breathe intelligence into Java - JavaWorld April 2001
 
Rumble in the jungle: J2EE versus .Net, Part 1
Rumble in the jungle: J2EE versus .Net, Part 1
 
A first look at JavaServer Faces, Part I
A first look at JavaServer Faces, Part Learn how to implement Web-based user interfaces with JSF
 
Java Tip 134: When catching exceptions, don't cast your net too wide
Java Tip 134: When catching exceptions, don't cast your net too wide
 
Make the Java-Oracle9i connection
Make the Java-Oracle9i connection
 
Tracing in a multithreaded, multiplatform environment
Tracing in a multithreaded, multiplatform environment In \"Use a consistent trace system for easier debugging,\" Scott Clee showed you how to trace and log from a custom class to provide a consistent tracing approach across your applications. This approa
 
YourKit Java Profiler 2.5.2 Released
YourKit Java Profiler 3.2 Released With help of YourKit Java Profiler, an outstanding tool for Java professionals, you can easily solve wide range of CPU and memory related performance problems in J2EE and J2SE applications.
 
Light-Weight Visual Components Library for different platform: SWT, J2SE, J2ME, .NET
Light-Weight Visual Components Library for different platform: SWT, J2SE, J2ME, .NET
 
YourKit Java Profiler 3.2 Released
With help of YourKit Java Profiler, an outstanding tool for Java professionals, you can easily solve wide range of CPU and memory related performance problems in J2EE and J2SE applications.
 
Jeff Schmitt's JDBC Page
This tutorial assumes you are using the MySQL database and the GWE JDBC drivers. The host computer is triton.towson.edu.
 
Servlet Essentials
This document explains the concepts of Java Servlets and provides a step-by-step tutorial for writing HTTP Servlets with complete source code for the example Servlets. The tutorial and the other chapters cover all facets of Servlet programming from a ...
 
JavaServer Pages Technology - Documentation
Sun's tutorial for Java Server Pages that provide a good introduction to design web pages with JSP.
 
Tag Libraries Tutorial
This tutorial describes how to use and develop JavaServer Pages tag libraries. The tutorial assumes that you know how to develop servlets and JSP pages and are familiar with packaging servlets and JSP pages into Web application archives.
 
Device Driver Tutorial for the Solaris OS
Make your hardware work with the Solaris OS on x86 or SPARC architectures. If you are a beginning Solaris kernel programmer, start with this new tutorial on docs.sun.com.
 
Source Code for Solaris OS Available Through OpenSolaris Program
Sun will release Solaris code under the newly OSI-approved Common Development and Distribution License (CDDL), based on the Mozilla Public License (MPL). You can now find Solaris Dynamic Tracing (DTrace) code on the OpenSolaris.org site, which is open for
 
Open Source Web Frameworks in Java
Open Source Web Frameworks in Java Open Source Web Frameworks in Java Struts Struts Frame work is the implementation of Model-View-Controller (MVC) design pattern for the JSP. Struts is maintained as a part of Apache Jakarta project and is open
 
What is WAP? Detailed discussion of WAP API with examples.
What is WAP? Detailed discussion of WAP API with examples. Learn WAP in 60 minutes W ireless Application Protocol or WAP for short, allows the developers to develop next generation web application for cellular devices. Through WAP enabled mobile
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.