Server Error in '/' Application.

The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Atcom.Sites.Agronews.Models.Presentation.PresentationItem]', but this dictionary requires a model item of type 'Atcom.Sites.Agronews.Models.Presentation.PublicationsWithArticlesViewModel'.

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.InvalidOperationException: The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Atcom.Sites.Agronews.Models.Presentation.PresentationItem]', but this dictionary requires a model item of type 'Atcom.Sites.Agronews.Models.Presentation.PublicationsWithArticlesViewModel'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Atcom.Sites.Agronews.Models.Presentation.PresentationItem]', but this dictionary requires a model item of type 'Atcom.Sites.Agronews.Models.Presentation.PublicationsWithArticlesViewModel'.]
   System.Web.Mvc.ViewDataDictionary`1.SetModel(Object value) +190
   System.Web.Mvc.ViewDataDictionary..ctor(ViewDataDictionary dictionary) +155
   Netvolution.Frontend.Mvc.WebViewPage`1.SetViewData(ViewDataDictionary viewData) +78
   Netvolution.Precompilation.PrecompiledView.CreatePage(ViewContext viewContext, TextWriter writer, WebPageContext& pageContext, WebPageRenderingBase& startPage) +399
   Netvolution.Precompilation.PrecompiledView.Render(ViewContext viewContext, TextWriter writer) +100
   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.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.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +188
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +43
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   Netvolution.Frontend.Mvc.<>c__DisplayClass5_0.<Wrap>b__0() +18
   Netvolution.Frontend.Mvc.ServerExecuteHttpHandlerWrapper.Wrap(Func`1 func) +29
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +1827

[HttpException (0x80004005): Error executing child request for handler 'Netvolution.Frontend.Mvc.HttpHandlerUtil+ServerExecuteHttpHandlerAsyncWrapper'.]
   System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +2521
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage) +131
   System.Web.HttpServerUtility.Execute(IHttpHandler handler, TextWriter writer, Boolean preserveForm) +29
   Netvolution.Frontend.Mvc.Services.PageEditor.PageEditorService.Render(ComponentInfo componentInfo, HttpContextBase httpContext, ViewContext parentActionViewContext, RequestContext requestContext, RouteValueDictionary routeValues, ViewDataDictionary viewData, StringWriter writer) +890
   Netvolution.Frontend.Mvc.Services.PageEditor.PageEditorService.RenderComponentInfo(ViewContext viewContext, ViewDataDictionary viewData, ComponentInfo componentInfo) +194
   Netvolution.Frontend.Mvc.Schema.ComponentInfo.RenderInternal(HtmlHelper html) +396
   Netvolution.Frontend.Mvc.Schema.ComponentInfo.Render(HtmlHelper html) +201
   Netvolution.Frontend.Mvc.<>c__DisplayClass29_0.<Render>b__0(ComponentInfo x, Int32 i) +21
   System.Linq.<SelectIterator>d__5`2.MoveNext() +293
   System.String.Join(String separator, IEnumerable`1 values) +78
   Netvolution.Frontend.Mvc.PageEditorAreaViewModel.Render(HtmlHelper html) +160
   Netvolution.Frontend.Mvc.WebViewPageAreaDesigner`1.RenderEditableArea(String areaName, Func`1 filterFactory, PageEditorAreaType areaType) +652
   ASP._Page_Areas_Default_Views_Article_Category_Templates_Category_Page_cshtml.Execute() in C:\agent3\_work\2387\s\Atcom.Sites.Agronews\Areas\Default\Views\Article Category Templates\Category Page.cshtml:45
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107
   Netvolution.Precompilation.PrecompiledView.Render(ViewContext viewContext, TextWriter writer) +152
   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.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +188
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +43
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +648
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +131


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