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

给定关键字不在字典中。

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

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

源错误:


行 84:             dic.Add(276256, "艾瑞咨询研究院院长金乃丽:寻找新消费中的增长引擎");
行 85:             var filepath = fpath + cid.ToString() + ".pdf";
行 86:             var FileName = dic[cid];
行 87:                     var Browser = string.Empty;
行 88:                     if (Request.Browser.Browser == "Firefox"|| Request.Browser.Browser=="Safari")

源文件: d:\webroot\www.iresearch.cn\wreport.iresearch.cn\download.aspx.cs    行: 86

堆栈跟踪:


[KeyNotFoundException: 给定关键字不在字典中。]
   System.ThrowHelper.ThrowKeyNotFoundException() +36
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +52
   download.Page_Load(Object sender, EventArgs e) in d:\webroot\www.iresearch.cn\wreport.iresearch.cn\download.aspx.cs:86
   System.Web.UI.Control.OnLoad(EventArgs e) +103
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3811


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