Copied to clipboard

Flag this post as spam?

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


  • Shivani Rajput 27 posts 97 karma points
    Mar 09, 2023 @ 06:42
    Shivani Rajput
    0

    Hi , When i create a new document type my pages can't bind with the block grid. its shows this error

    ModelBindingException: Cannot bind source content type Umbraco.Cms.Infrastructure.PublishedCache.PublishedContent to model type Umbraco.Cms.Web.Common.PublishedModels.BlockGrid.

  • Huw Reddick 1737 posts 6077 karma points MVP c-trib
    Mar 09, 2023 @ 10:23
    Huw Reddick
    0

    Hi Shivani,

    does your template for the document have a line like this?

    @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Umbraco.Cms.Web.Common.PublishedModels.BlockGrid>
    
  • Shivani Rajput 27 posts 97 karma points
    Mar 09, 2023 @ 10:41
    Shivani Rajput
    0

    yes!

    @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<ContentModels.BlockGrid>
    
  • Huw Reddick 1737 posts 6077 karma points MVP c-trib
    Mar 09, 2023 @ 11:32
    Huw Reddick
    0

    could you show us the code of your template and maybe an indication of which line is throwing the error?

  • Shivani Rajput 27 posts 97 karma points
    Mar 10, 2023 @ 05:08
    Shivani Rajput
    0

    Thank you for your response! but the error has been solved.

Please Sign in or register to post replies

Write your reply to:

Draft