技术总奸

forms authentication failed the ticket supplied was invalid错误 (Windows Server 2008 + IIS 7.5)

客户系统部署在Web Farm环境中,前端2台Web Server(Windows Server 2008 + IIS 7.5)。

偶然登录进一台Server发现Windows提示有系统更新,随手点了更新,于是就杯具了。

第二天,许多客户反映,登录进系统后会被频繁退出,时间间隔很短,甚至每个Post后都会被退出。查看系统日志,发现了大量forms authentication failed the ticket supplied was invalid错误。

Google了下,发现是Windows Security Update for .Net Framework的问题,具体见Scott的博客http://weblogs.asp.net/scottgu/archive/2010/09/30/asp-net-security-fix-now-on-windows-update.aspx

解决方法具体是:

  1. 保证Web Farm里所有Server都安装了Windows更新,主要是Serurity Update fro .Net Framework的更新;
  2. 如果还该错误发生,最简单的是更改Web.config<forms name=".ASPXAUTH"/>节点,把name值改为与原来不同的。

posted on 2012-07-06 12:32  阿福  阅读(914)  评论(0编辑  收藏  举报