给定关键字不在字典中。

您所在的位置:网站首页 cos的曲线图像 给定关键字不在字典中。

给定关键字不在字典中。

2023-06-29 01:08| 来源: 网络整理| 查看: 265

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

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

源错误:

行 2: @using Tools.Models 行 3: @{ 行 4: var datas = Tools.Utility.InitHistory(new SimpleLink("/Search", "hot"), "SearchKeys.json", false); 行 5: var count = 0; 行 6: } 源文件: e:\Sites\haomeili.net\Views\Shared\__ComSearch.cshtml    行: 4

堆栈跟踪:

[KeyNotFoundException: 给定关键字不在字典中。] System.ThrowHelper.ThrowKeyNotFoundException() +38 System.Collections.Generic.Dictionary`2.get_Item(TKey key) +54 ASP._Page_Views_Shared___ComSearch_cshtml.Execute() in e:\Sites\haomeili.net\Views\Shared\__ComSearch.cshtml:4 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +147 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122 System.Web.Mvc.Html.PartialExtensions.Partial(HtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData) +136 ASP._Page_Views_Shared__Layout_cshtml.Execute() in e:\Sites\haomeili.net\Views\Shared\_Layout.cshtml:86 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +147 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +122 System.Web.WebPages.c__DisplayClass7.b__6(TextWriter writer) +304 System.Web.WebPages.WebPageBase.Write(HelperResult result) +108 System.Web.WebPages.WebPageBase.RenderSurrounding(String partialViewName, Action`1 body) +88 System.Web.WebPages.WebPageBase.PopContext() +349 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +378 System.Web.Mvc.c__DisplayClass1a.b__17() +31 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +448 System.Web.Mvc.Async.c__DisplayClass25.b__22(IAsyncResult asyncResult) +187 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38 System.Web.Mvc.c__DisplayClass1d.b__18(IAsyncResult asyncResult) +30 System.Web.Mvc.Async.c__DisplayClass4.b__3(IAsyncResult ar) +25 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52 System.Web.Mvc.Async.c__DisplayClass4.b__3(IAsyncResult ar) +25 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38 System.Web.Mvc.c__DisplayClass8.b__3(IAsyncResult asyncResult) +44 System.Web.Mvc.Async.c__DisplayClass4.b__3(IAsyncResult ar) +25 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +431 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158 版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4494.0


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3