What should you do to modify the application configuration to enable WebEvent monitoring?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework
version 3.5.You plan to monitor the execution of the application at daily intervals.You need to modify the application configuration to enable WebEvent monitoring. What should you do?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework
version 3.5.You plan to monitor the execution of the application at daily intervals.You need to modify the application configuration to enable WebEvent monitoring. What should you do?

A.
Enable the Debugging in the Web site option in the ASP.NET configuration settings.
Modify the Request Execution timeout to 10 seconds.

B.
Register the aspnet_perf.dll performance counter library by using the following command.
regsvr32 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_perf.dll

C.
Add the following code fragment to the <healthMonitoring> section of the Web.config
file of the application.
<profiles>
<add name=”Default” minInstances=”1″ maxLimit=”Infinite” ?
minInterval=”00:00:10″
custom=”” />
</profiles>

D.
Add the following code fragment to the <system.web> section of the Web.config file of
the application.
<healthMonitoring enabled=”true” heartbeatInterval=”10″>
<rules>
<add name=”Heartbeats Default” eventName=”Heartbeat” provider=”EventLogProvider”
profile=”Critical”/>
</rules>
</healthMonitoring>

Explanation:
<configuration>
<system.web>
<healthMonitoring enabled=”true” heartbeatInterval=”1″>
<rules>
<add name=”Heart Beat”
eventName=”Heartbeats”
provider=”EventLogProvider”
profile=”Default”/>
<add name=”App Lifetime”
eventName=”Application Lifetime Events”
provider=”EventLogProvider”
profile=”Default”
minInstances=”1″ minInterval=””
maxLimit=”Infinite”/>
</rules>
</healthMonitoring>
<system.web>
<configuration>
Health Monitoring: MCTS Self-Paced Training Kit (Exam 70-562): Microsoft.Net Framework 3.5-ASP.Net Application Development (pg. 773)



Leave a Reply 0

Your email address will not be published. Required fields are marked *