@using Umbraco.Cms.Core.Models.Blocks @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage> @{ if (Model?.Any() != true) { return; } }
@foreach (var item in Model) {
@{ var partialViewName = "blockgrid/Components/" + item.Content.ContentType.Alias; try { @await Html.PartialAsync(partialViewName, item) } catch (InvalidOperationException) {

Could not render component of type: @(item.Content.ContentType.Alias)
This likely happened because the partial view @partialViewName could not be found.

} }
}