Partilhar via


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":

  • Checked mode initiates intensive runtime checks. Checked mode is a superset of Debug mode. You should run a new site in Checked mode before deploying it into production.

  • Debug mode generates debug trace messages that may be helpful in troubleshooting a Commerce Server site while the site is live in production. This mode forgoes the more intensive checks performed in Checked mode.

  • Production mode involves no special tracing; only operation messages are traced.

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">

See Also

Reference

DebugContext

Other Resources

Web.Config Configuration Settings