Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • sneha george 4 posts 74 karma points
    Nov 30, 2018 @ 03:46
    sneha george
    0

    Error in Template of Home Page alone

    Hi,

    From past 2 days our staging home page is throwing error.But production is loading fine. So i guess this is not a code issue. I tried to cross check all the fields of Home Page template but there was no diff between staging and production.

    When i tried to create a new page from the home template and without giving any property value i tried to preview,its showing the same error.

    So is the issue with template?

    PFB the ERROR:

    The model item passed into the dictionary is of type 'Umbraco.Web.Models.RenderModel', but this dictionary requires a model item of type 'AnnSacks.Models.ViewModels.Home.HomeViewModel'. 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 'Umbraco.Web.Models.RenderModel', but this dictionary requires a model item of type 'AnnSacks.Models.ViewModels.Home.HomeViewModel'.

    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 'Umbraco.Web.Models.RenderModel', but this dictionary requires a model item of type '*.Models.ViewModels.Home.HomeViewModel'.] System.Web.Mvc.ViewDataDictionary1.SetModel(Object value) +176 System.Web.Mvc.ViewDataDictionary.set_Model(Object value) +15 System.Web.Mvc.ViewDataDictionary..ctor(ViewDataDictionary dictionary) +359 System.Web.Mvc.WebViewPage1.SetViewData(ViewDataDictionary viewData) +49 System.Web.Mvc.WebViewPage.set_ViewData(ViewDataDictionary value) +9 System.Web.Mvc.RazorView.RenderView(ViewContext viewContext, TextWriter writer, Object instance) +105 System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext viewContext, TextWriter writer) +121 Umbraco.Core.Profiling.ProfilingView.Render(ViewContext viewContext, TextWriter writer) +93 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +240 System.Web.Mvc.ControllerActionInvoker.InvokeActionResult(ControllerContext controllerContext, ActionResult actionResult) +13 System.Web.Mvc.<>cDisplayClass1a.17() +23 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +257 System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +257 System.Web.Mvc.<>cDisplayClass1c.19() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func1 continuation) +257 System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +22 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +184 System.Web.Mvc.Async.<>cDisplayClass2a.20() +66 System.Web.Mvc.Async.<>cDisplayClass25.22(IAsyncResult asyncResult) +99 System.Web.Mvc.Async.WrappedAsyncResult1.End() +50 System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +18 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +784 System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +658 System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14 System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16 System.Web.Mvc.Async.WrappedAsyncResult1.End() +50 System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +16 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +27 System.Web.Mvc.Async.<>cDisplayClass4.3(IAsyncResult ar) +16 System.Web.Mvc.Async.WrappedAsyncResult1.End() +50 System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +16 System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +15 System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10 System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +25 System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +16 System.Web.Mvc.Async.WrappedAsyncResult1.End() +50 System.Web.Mvc.Async.AsyncResultWrapper.End(IAsyncResult asyncResult, Object tag) +19 System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +13 System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1095 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +592 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +140 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +848

    Version Information: Microsoft .NET Framework Version:4.0.30319

Please Sign in or register to post replies

Write your reply to:

Draft