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 21: {<div style="float:left; margin:0 0 5pt 10pt; padding-bottom: 5pt; text-align:center; /* border-bottom:1px solid #CCC;*/ /*background-color:#F8F8F8;*/ width: 310px; height:275px; overflow:hidden;">
Line 22:         <a href="@Model.GetUrl(ill)">
Line 23:             <img class="lazy" src="/Content/grey.gif" data-original="@ill.GetPicturePreviewUrl()" width="310" height="216" alt="@ill.Title" title="@ill.Title" />
Line 24:             <noscript><img src="@ill.GetPicturePreviewUrl()" width="310" height="216" alt="@ill.Title" /></noscript>
Line 25:             <h4 style="margin:0pt 2pt 10pt 2pt;">@ill.Title</h4>

Source File: C:\data\mfans2.com\web2\Views\Shared\ETKPartIllustrations.cshtml    Line: 23

Stack Trace:


[KeyNotFoundException: The given key was not present in the dictionary.]
   System.ThrowHelper.ThrowKeyNotFoundException() +36
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +52
   ETKModule.Web.TextDataColl.Translate(String lang, Int32 textID) in E:\Projects\SMS43\ETKModule.Web\TextDataColl.cs:37
   ASP.<>c__DisplayClass0_0.<RenderIll>b__0(TextWriter __razor_helper_writer) in C:\data\mfans2.com\web2\Views\Shared\ETKPartIllustrations.cshtml:23
   System.Web.WebPages.WebPageBase.Write(HelperResult result) +108
   ASP._Page_Views_Shared_ETKPartIllustrations_cshtml.Execute() in C:\data\mfans2.com\web2\Views\Shared\ETKPartIllustrations.cshtml:53
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +86
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +375
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +88
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList`1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +775
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +81
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +973
   System.Web.Mvc.Controller.ExecuteCore() +128
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +235
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88


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