Umbraco.Web.Mvc.ModelBindingException: Cannot bind source content type
Anyone know what may be the issue? I am getting this error:
Umbraco.Web.Mvc.ModelBindingException: Cannot bind source content type [redacted].Web.ViewModels.PageNotFound to model type [redacted].Web.ViewModels.Subpage.
The error arises when trying to load a 404 error page of document type 'Errorpage'. I am new to Umbraco so I am not entirely sure how to decode the message, but googling suggests that it may be because of this line in /Views/Subpage.cshtml?
Umbraco.Web.Mvc.ModelBindingException: Cannot bind source content type
Anyone know what may be the issue? I am getting this error:
Umbraco.Web.Mvc.ModelBindingException: Cannot bind source content type [redacted].Web.ViewModels.PageNotFound to model type [redacted].Web.ViewModels.Subpage.
The error arises when trying to load a 404 error page of document type 'Errorpage'. I am new to Umbraco so I am not entirely sure how to decode the message, but googling suggests that it may be because of this line in /Views/Subpage.cshtml?
@inherits Umbraco.Web.Mvc.UmbracoViewPage<[redacted].Web.ViewModels.Subpage> @using ContentModels = Umbraco.Web.PublishedModels
is working on a reply...