application Element
For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.
The application element is the root element of the Commerce Server configuration section in the Web.config file. This element stores basic configuration settings for the application.
In any of the modes, trace messages and Debug exceptions (only generated in Checked mode) are published using a DebugContext instance. The Commerce Server .NET Framework provides a default instance (created by the CommerceApplicationModule class) that logs messages using the ASP.NET tracing mechanism. For example, a Commerce Server site could replace the DebugContext instance with a custom instance that could log the messages to a file or database.
The following table lists and describes the attributes of the application element.
Attribute |
Data Type |
Description |
---|---|---|
siteName |
String |
The name of the site to which the application belongs. This attribute is required. |
debugLevel |
String |
The debug level, or mode, of the site. The valid values of this attribute are "Checked", "Debug", and "Production":
Other components can use this attribute to determine how to handle exceptions. The default value is Production mode. This attribute is required. |
Example
<application siteName="MySite" debugLevel="Production">