Server Error in '/' Application.

The given key was not present in the dictionary.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Source Error:


Line 156:	templateBuilder.Append(Utils.ObjectToStr(model.id));
Line 157:	templateBuilder.Append("&click=1\"></");
Line 158:	templateBuilder.Append("script>\r\n                            次\r\n                        </span><span>作者:" + Utils.ObjectToStr(model.fields["author"]) + "</span> <span>时间:");	templateBuilder.Append(Utils.ObjectToDateTime(model.add_time).ToString("yyyy-MM-dd"));
Line 159:
Line 160:	templateBuilder.Append("</span>\r\n\r\n                        ");

Source File: d:\OKEWebSite\okesite\aspx\main\details.aspx    Line: 158

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +11770017
   ASP.aspx_main_details_aspx.OnInit(EventArgs e) in d:\OKEWebSite\okesite\aspx\main\details.aspx:158
   System.Web.UI.Control.InitRecursive(Control namingContainer) +139
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +408


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1055.0