“/”应用程序中的服务器错误。

已添加了具有相同键的项。

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: 已添加了具有相同键的项。

源错误:


行 24:     {
行 25:         // 在新会话启动时运行的代码
行 26:         ZJ.BM.SiteCounter.AddVisiter();
行 27:     }
行 28: 

源文件: d:\vhostroot\localuser\xjwy01\www\global.asax    行: 26

堆栈跟踪:


[ArgumentException: 已添加了具有相同键的项。]
   System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +56
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +13143720
   ZJ.BM.get_Current() +130
   ZJ.BM.get_SiteCounter() +5
   ASP.global_asax.Session_Start(Object sender, EventArgs e) in d:\vhostroot\localuser\xjwy01\www\global.asax:26
   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +10082212
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +165
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1126
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +297
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4700.0