日期:2014-05-17  浏览次数:22526 次

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

异常详细信息: System.Collections.Generic.KeyNotFoundException: 给定关键字不在字典中。

源错误: 

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  

堆栈跟踪: 


[KeyNotFoundException: 给定关键字不在字典中。]
  System.ThrowHelper.ThrowKeyNotFoundException() +28
  System.Collections.Generic.Dictionary`2.get_Item(TKey key) +7604448
  WebGis.Index.get_AreaPositions() +497
  WebGis.Index.Page_Load(Object sender, EventArgs e) +97
  System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
  System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
  System.Web.UI.Control.OnLoad(EventArgs e) +99
  System.Web.UI.Control.LoadRecursive() +50
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 


------解决方案--------------------
http://topic.csdn.net/u/20080529/10/d6ec85b0-2fc1-4a08-8498-ef5918fba60a.html
------解决方案--------------------
+
调试看
探讨

http://topic.csdn.net/u/20080529/10/d6ec85b0-2fc1-4a08-8498-ef5918fba60a.html

------解决方案--------------------
应该是设置的某个属性或内容不对造成的,光看这个堆栈看不清具体的情况
------解决方案--------------------
你只能去调试才能找出问题来了。
可能某的Dictionary的引用出问题了
------解决方案--------------------
Dictionary字典中没有对应的键值!
------解决方案--------------------
探讨
Dictionary字典中没有对应的键值!

------解决方案--------------------
探讨

[Quote=引用:]
Dictionary字典中没有对应的键值!

++

------解决方案--------------------
探讨
http://topic.csdn.net/u/20080529/10/d6ec85b0-2fc1-4a08-8498-ef5918fba60a.html