Error Handling
This section describes errors that originate in the International Retail Site application. Errors originating in Internet Information Services (IIS) and deployment errors are not described.
When an error occurs on a page, ASP.NET sends information about the error to the ASP.NET client application. Errors are divided into the following categories:
Configuration errors
Occur when the syntax or structure of the web.config file in the configuration hierarchy is incorrect. This includes Commerce Server 2002 run time configuration exceptions.
Global.asax errors
Occur when an error happens when compiling or running the Global.asax file. The application level error handling described in this section traps run time errors in the Global.asax file. Compilation errors in the Global.asa file are not trapped.
Parser errors
Occur when the ASP.NET syntax on a page is malformed.
Compilation errors
Occur when statements in a target language for the page are incorrect.
Run-time errors
Occur during page execution, even though the errors could not be detected at compile time.
Since the International Retail Site is shipped with a valid web.config file, configuration and Global.asax errors are unlikely to happen until the site has been customized by the user.
Parser, compilation, and run-time errors can be trapped.
This section contains:
- Application Level Error Handling
- Exception Handling Guidelines and Best Practices
- Exception Handling of Commerce Server 2002 BCL and PIA/COM Interop Objects
Copyright © 2005 Microsoft Corporation.
All rights reserved.