Quantcast
Viewing all articles
Browse latest Browse all 6894

error The model item passed into the dictionary is of type 'Castle.Proxies.MyBlockProxy'

Episerver version v11.12

I have created some very simple blocks that get added to a page in a standard ContentArea.  Some of the blocks work, others give the error message below.  I am NOT using eCommerce.  I've tried recreating the blocks with different code names and GUIDs and versioned the site in the AssemblyInfo.cs file.  Nothing seems to work.  Any ideas?

Exception message:

The model item passed into the dictionary is of type 'Castle.Proxies.TwoColumnBlockProxy', but this dictionary requires a model item of type 'MTA_Episerver.Models.ViewModels.IPageViewModel`1[MTA_Episerver.Models.Pages.SitePageData]'.

Exception stack trace:

at System.Web.Mvc.ViewDataDictionary`1.SetModel(Object value) at System.Web.Mvc.ViewDataDictionary..ctor(ViewDataDictionary dictionary) at System.Web.Mvc.WebViewPage`1.SetViewData(ViewDataDictionary viewData) at System.Web.Mvc.WebViewPage.ConfigurePage(WebPageBase parentPage) at System.Web.WebPages.WebPageBase.


Viewing all articles
Browse latest Browse all 6894

Trending Articles