tags:

views:

332

answers:

1

My event log is flooded with this message:

Forms authentication failed for the request. Reason: The ticket supplied has expired.

I think this happens when people timeout instead of logout.

First of all , this is not an error, it's Type: Information

I don't want this information, how do I stop ASP.NET from logging it?

My application is not web-farmed, and uses a static machine key.

+3  A: 

Here's the solution:

<?xml version="1.0"?>
<configuration>
   <system.web>
      <healthMonitoring>
         <rules>
            <remove name="Failure Audits Default" />
         </rules>
      </healthMonitoring>
   </system.web>
</configuration>

Note that this will prevent the logging off all System.Web.Management.WebFailureAuditEvent events, which covers the event range 4005-4011. There is probably a way to just remove 4005, but this solution is good enough for me.

These are the links that helped me:

Max Toro
+1 i am tempted to undelete my answer just to make your answer look even better, but umm.. no. ;-)
Sky Sanders
@Max finally yes this is one way, but you delete and remove all events this way and not only the one you ask for.
Aristos
@Aristos: Not all events, only the 4005-4011 range, which are all related to authentication/authorization failures. There is a way add the 4006-4011 range back also using configuration. I understand this is not the exact answer I was looking for, but it points in the right direction, which is configuration.
Max Toro