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

给定关键字不在字典中。

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

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

源错误:


行 44: 	templateBuilder.Append("script>\r\n<script type=\"text/javascript\">\r\n$(function(){\r\n	//设置视频容器大小\r\n	winResize();\r\n	$(window).resize(function() {\r\n		winResize();\r\n	});\r\n	//初始化视频容器\r\n        initCUPlayer('");
行 45: 	templateBuilder.Append(Utils.ObjectToStr(config.webpath));
行 46: 	templateBuilder.Append("', 'video-box', '" + Utils.ObjectToStr(model.fields["video_src"]) + "');\r\n});\r\n//改变大小函数\r\nfunction winResize(){\r\n	if($(\".section\").width() == 1160){\r\n		$(\".video-box\").width(785);\r\n		$(\".video-box\").height(441);\r\n	}else{\r\n		$(\".video-box\").width(550);\r\n		$(\".video-box\").height(309);\r\n	}\r\n}\r\n</");
行 47: 	templateBuilder.Append("script>\r\n</head>\r\n\r\n<body id=\"video\">\r\n<!--页面头部-->\r\n");
行 48: 

源文件: e:\GroupWeb\hqnsw.com\aspx\main\video_show.aspx    行: 46

堆栈跟踪:


[KeyNotFoundException: 给定关键字不在字典中。]
   System.ThrowHelper.ThrowKeyNotFoundException() +38
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +54
   ASP.aspx_main_video_show_aspx.OnInit(EventArgs e) in e:\GroupWeb\hqnsw.com\aspx\main\video_show.aspx:46
   System.Web.UI.Control.InitRecursive(Control namingContainer) +173
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +491


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