Copied to clipboard

Flag this post as spam?

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


  • J. de K. 9 posts 89 karma points
    Sep 06, 2022 @ 12:38
    J. de K.
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft