窗体身份验证失败的请求。原因:提供的票证已过期 [英] Forms authentication failed for the request. Reason: The ticket supplied has expired
问题描述
我的事件日志上充斥着这样的信息:
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
我不希望这样的信息,我该如何阻止ASP.NET的记录呢?
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.
推荐答案
下面是解决方案:
<?xml version="1.0"?>
<configuration>
<system.web>
<healthMonitoring>
<rules>
<remove name="Failure Audits Default" />
</rules>
</healthMonitoring>
</system.web>
</configuration>
请注意,这将prevent记录了所有 System.Web.Management.WebFailureAuditEvent
事件,其中包括事件范围4005-4011。有可能是一种方法,只是删除4005,但这种方法是配不上我。
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:
- <一个href="http://msdn.microsoft.com/en-us/library/ms998325.aspx">http://msdn.microsoft.com/en-us/library/ms998325.aspx
- <一个href="http://msdn.microsoft.com/en-us/library/ms998306.aspx">http://msdn.microsoft.com/en-us/library/ms998306.aspx
- http://msdn.microsoft.com/en-us/library/ms998325.aspx
- http://msdn.microsoft.com/en-us/library/ms998306.aspx
这篇关于窗体身份验证失败的请求。原因:提供的票证已过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!