Copied to clipboard

Flag this post as spam?

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


  • Nick 20 posts 161 karma points notactivated
    Feb 02, 2023 @ 13:15
    Nick
    0

    The partial view 'blockgrid/default' was not found

    I'm receiving the following error whislt trying to imnplmenet the new Umbraco Block Grid Editor. It looks like some files are missing but there is no sign of them in the solution nor in the Umbraco package?

    InvalidOperationException: The partial view 'blockgrid/default' was not found. The following locations were searched:
    /App_Plugins/Views/Render/blockgrid/default.cshtml
    /App_Plugins/Views/Shared/blockgrid/default.cshtml
    /App_Plugins/Views/Partials/blockgrid/default.cshtml
    /App_Plugins/Views/MacroPartials/blockgrid/default.cshtml
    /Views/blockgrid/default.cshtml
    /Views/Shared/blockgrid/default.cshtml
    /Views/Partials/blockgrid/default.cshtml
    /Views/MacroPartials/blockgrid/default.cshtml
    /Views/Render/blockgrid/default.cshtml
    /Views/Shared/blockgrid/default.cshtml
    
  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Feb 02, 2023 @ 15:05
    Huw Reddick
    0

    WHat exact version of Umbraco are you using?

  • Nick 20 posts 161 karma points notactivated
    Feb 02, 2023 @ 15:35
    Nick
    0

    10.4.0 and have also just tried 11.0.1 and had the exact same issue.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Feb 03, 2023 @ 13:31
    Huw Reddick
    0

    I have just done a clean install of U10.4.0 in VS, and get the same issue. I have two other test projects and they both have the files so I will see if I can work out at what point they stopped being created

  • Nick 20 posts 161 karma points notactivated
    Feb 03, 2023 @ 13:37
    Nick
    0

    Interesting, thanks Huw! I raised an issue here: https://github.com/umbraco/Umbraco-CMS/issues/13777 - if you wanted to add anything too.

    Pretty sure this is a bug as opposed to user error but we will see - it might be something to do with the .NET template usage in VS?

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Feb 03, 2023 @ 14:22
    Huw Reddick
    0

    I added a comment, pretty sure it's a bug as it creates the views if you upgrade to 10.4.0 from a lower version but not if you install 10.4.0 directly. I assume it is the same for 11 as my 11.0.1 test project has the views (it ws upgraded from 11) but a new clean 11.0.1 install does not create the views.

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Feb 03, 2023 @ 13:59
    Huw Reddick
    0

    looks like a bug.

    If you install a lower U10 version and then update to U10.4.0 the views get created. If you install U10.4.0 directly the views do not get created

  • Nick 20 posts 161 karma points notactivated
    Feb 03, 2023 @ 14:02
    Nick
    0

    Seems to be the case. I manged to get around the issue by manually retrieving the missing files here: https://github.com/umbraco/Umbraco-CMS/tree/contrib/src/Umbraco.Web.UI/Views/Partials/blockgrid

  • Huw Reddick 1929 posts 6697 karma points MVP 2x c-trib
    Feb 06, 2023 @ 11:37
    Huw Reddick
    100

    It looks like it is a template problem with Visual studio, when installing from the CLI I noticed that it stated there was an update for the Umbraco template 10.0.0 so I executed the following

    dotnet new install Umbraco.Templates::10.4.0
    

    Now when I install a new Umbraco 10.4.0 in Visual studio it creates the partial views correctly. Yet another thing to keep on top of!

    I'm beginning to really not like .net core.

Please Sign in or register to post replies

Write your reply to:

Draft