Main Page

  Previous Section Next Section

ErrorHandlerModule.NET 1.1

System.Web.Mobile (system.web.mobile.dll)class

This module is used internally by ASP.NET to deal with unhandled exceptions. In the case of an exception, ASP.NET will return a page with a short error message (much as in a standard ASP.NET web page). The error message will be automatically formatted to the target device's expected markup. For WML devices, this will be a card deck. For HTML devices, this will be a page of HTML.

The automatically generated error messages are useful while debugging, but may not be shown to remote clients (depending on your settings in the web.config file). A better option is to write custom error pages and specify them using the web.config file before deploying a mobile web application.

public class ErrorHandlerModule : System.Web.IHttpModule {
// Public Constructors
   public ErrorHandlerModule( );
      Previous Section Next Section