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
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
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.
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!
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?
WHat exact version of Umbraco are you using?
10.4.0 and have also just tried 11.0.1 and had the exact same issue.
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
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?
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.
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
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
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
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.
is working on a reply...