How to prevent ASP.NET from registering authentication errors?

My Windows Azure Web Role The ASP.NET MVC application serves REST API requests on some routes, and these routes require basic authentication. Client programs are often not authenticated โ€” most of them are in the middle of debugging โ€” and therefore authentication errors are quite common. For each event, I get an entry like this in the application log (accessible through an event viewer or class System.Diagnostics.EventLog)

Date and Time Here (ASP.NET 4.0.30319.0): Event code: 100001
Event message: Authentication failure
Event time: Date and time
Event time (UTC): UTC date and time
// lots of information follows

I am sure that I will never read these messages, and writing them consumes some processor time and I / O bandwidth on the virtual service machines.

How can I get these failures?

+2
1

<system.web><healthMonitoring> web.config. . "" - .

, :

<healthMonitoring>
  <rules>
    <clear />
  </rules>
</healthMonitoring>

- , . , , .

0

All Articles