Programming Microsoft ASP.NET 4 - Dino Esposito [44]
The When retail is set to true, ASP.NET automatically disables certain configuration settings, such as trace output, custom errors, and debug capabilities. When the default value of retail is false, each application is automatically deployed for testing. The Table 3-8. Globalization Attributes Attribute Description culture Specifies the culture to be used to process requests. fileEncoding Specifies the encoding for ASP.NET resource files (.aspx, .asmx, and .asax). Unicode and UTF-8 files saved with the byte order mark prefix are recognized regardless of the value of the attribute. requestEncoding Specifies the assumed encoding of each request, including posted data and the query string. The default is UTF-8. responseEncoding Specifies the content encoding of responses. The default is UTF-8. uiCulture Specifies the culture name to be used to look up locale-dependent resources at run time. Note that, if specified, the Accept-Charset attribute in the request overrides the default requestEncoding setting. If you remove any encoding setting from the configuration files, ASP.NET defaults to the server’s locale. In the majority of cases, requestEncoding and responseEncoding have the same value. Valid names for the culture and uiCulture attributes are non-neutral culture names such as en-US, en-AU, and it-IT. A culture name is made of two elements—the language and country/region—and both are to be specified in this context. The The The heartbeatInterval="HH:MM:SS"> The enabled attribute specifies whether health monitoring is enabled. It is true by default. The heartbeatInterval attribute indicates how often the heartbeat event is raised. The heartbeat event serves as a timer for the whole subsystem and is raised at regular intervals to capture useful runtime state information. The heartbeat is just one of the events that the health monitoring system can detect. Other events track unhandled exceptions, request processing, application lifetime, and the success and failure audits. Child sections, listed in Table 3-9, let you configure the whole subsystem. Table 3-9. Elements for Health Monitoring
The
The
The section allows you to register application-specific HTTP handlers that take care of ad hoc URLs invoked over given HTTP verbs. I’ll dissect the syntax and usage of the
The
Health monitoring is a system feature that allows the production staff to monitor the status of a deployed application and track significant events related to performance, failures, and anomalies. The ASP.NET health monitoring system works by firing events to providers. The event contains actual information about what happened; the provider processes the information. Here is the overall schema: