PrepAway - Latest Free Exam Questions & Answers

You need to log health-monitoring events with severity level of error to the Windows application event log

You deploy an ASP.NET application to an IIS server. You need to log health-monitoring events with
severity level of error to the Windows application event log. What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Run the aspnet_regiis.exe command.

B.
Select the Treat all warnings as errors option in the project properties and recompile.

C.
Add the following rule to the healthMonitoring section of the web.config file.
<rules><add name=”Failures”eventName=”Failure Audits”provider=”EventLogProvider” />
</rules>

D.
Add the following rule to the healthMonitoring section of the web.config file.
<rules><add name=”Errors”eventName=”All Errors”provider=”EventLogProvider” />
</rules>


Leave a Reply