FineUI 官方论坛

标题: 为什么出这个错误啊?给定关键字不在字典中 [打印本页]

作者: wrllynn    时间: 2012-9-2 17:45
标题: 为什么出这个错误啊?给定关键字不在字典中
“/”应用程序中的服务器错误。
给定关键字不在字典中。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

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

源错误:

行 486:            Dictionary<string, RoleModulePower> roleModuleDic = RoleModulePowerHelper.GetRoleModulePowerDic(roleId);行 487:            string moduleTypeName = ModuleTypeHelper.Module2String(Module);行 488:            RoleModulePower modulePower = roleModuleDic[moduleTypeName];行 489:行 490:            bool power = false;

源文件: C:\Documents and Settings\Administrator\桌面\旅游局\web\app_box\Business\PageBase.cs    行: 488

堆栈跟踪:

[KeyNotFoundException: 给定关键字不在字典中。]   System.ThrowHelper.ThrowKeyNotFoundException() +28   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +7452124   AppBox.PageBase.CheckPower(ModulePowerType powerType) in C:\Documents and Settings\Administrator\桌面\旅游局\web\app_box\Business\PageBase.cs:488   AppBox.PageBase.CheckPowerCanRead() in C:\Documents and Settings\Administrator\桌面\旅游局\web\app_box\Business\PageBase.cs:438   AppBox.PageBase.OnInit(EventArgs e) in C:\Documents and Settings\Administrator\桌面\旅游局\web\app_box\Business\PageBase.cs:59   System.Web.UI.Control.InitRecursive(Control namingContainer) +333   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378



作者: sanshi    时间: 2012-9-2 18:00
应用更新没,操作步骤?




欢迎光临 FineUI 官方论坛 (https://www.fineui.com/bbs/) Powered by Discuz! X3.4