Copied to clipboard

Flag this post as spam?

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


  • Mohammad Javed 14 posts 95 karma points
    Sep 01, 2023 @ 14:11
    Mohammad Javed
    0

    Umbraco 8: Cannot bind source type when adding Partial

    Hello,

    I have successfully installed the package on my Umbraco 8 Cloud website that has been cloned locally.

    The datatype has been created and assigned to pages.

    When I go to add @Html.Partial("MetaMomentum/RenderMetaTags", Model.Value("metaMomentum")) in my Master.cshtml in the head section I end up with the following error;

    Umbraco.Web.Mvc.ModelBindingException: 'Cannot bind source type Umbraco.Web.PublishedModels.Home to model type MetaMomentum.Models.MetaValues. The source is a ModelsBuilder type, but the view model is not. The application is in an unstable state and should be restarted.'
    

    Screenshot: https://gyazo.com/ac25d453f873068a1e52efa9f27cacfe

    Thanks,

    Javed

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies