技术总奸

随笔分类 -  .NET

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的博客ht 阅读全文

posted @ 2012-07-06 12:32 阿福 阅读(925) 评论(0) 推荐(0)

HashSet<T> vs List<T>
摘要:大数据量下,生成HashSet成本要稍高于List。但查询HashSet效率要远高于List。 static void Main(string[] args) { Stopwatch watch = new Stopwatch(); List<string> list = new List<string>(); HashSet<string> hash = new HashSet<string>(); watch.Start(); for (int i = 0; i <... 阅读全文

posted @ 2012-06-23 22:41 阿福 阅读(1180) 评论(0) 推荐(0)