System.InvalidCastException: Unable to cast object of type 'Umbraco.Cms.Web.Common.PublishedModels.SharedBanner' to type 'Umbraco.Cms.Web.Common.PublishedModels.SharedBannerBlock'.
at AspNetCore.Views_Partials_blocklist_components_sharedBannerBlock.ExecuteAsync() in D:\Websites\Live10Rebrand\Application\Views\Partials\blocklist\components\sharedBannerBlock.cshtml:line 0
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)
at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.RenderPartialCoreAsync(String partialViewName, Object model, ViewDataDictionary viewData, TextWriter writer)
at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.PartialAsync(String partialViewName, Object model, ViewDataDictionary viewData)
at Microsoft.AspNetCore.Mvc.Rendering.HtmlHelperPartialExtensions.Partial(IHtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData)
at Umbraco.Extensions.CacheHelperExtensions.<>c__DisplayClass0_0.<CachedPartialView>b__0()
at Umbraco.Extensions.AppCacheExtensions.<>c__DisplayClass0_0`1.<GetCacheItem>b__0()
at Umbraco.Cms.Core.Cache.SafeLazy.<>c__DisplayClass1_0.<GetSafeLazy>b__0()
--- End of stack trace from previous location ---
at Umbraco.Cms.Core.Cache.ObjectCacheAppCache.Get(String key, Func`1 factory, Nullable`1 timeout, Boolean isSliding, String[] dependentFiles)
at Umbraco.Cms.Core.Cache.DeepCloneAppCache.Get(String key, Func`1 factory, Nullable`1 timeout, Boolean isSliding, String[] dependentFiles)
at Umbraco.Extensions.CacheHelperExtensions.CachedPartialView(AppCaches appCaches, IHostingEnvironment hostingEnvironment, IUmbracoContext umbracoContext, IHtmlHelper htmlHelper, String partialViewName, Object model, TimeSpan cacheTimeout, String cacheKey, ViewDataDictionary viewData)
at Umbraco.Extensions.HtmlHelperRenderExtensions.CachedPartialAsync(IHtmlHelper htmlHelper, String partialViewName, Object model, TimeSpan cacheTimeout, Boolean cacheByPage, Boolean cacheByMember, ViewDataDictionary viewData, Func`3 contextualKeyBuilder)
at AspNetCore.Views_Partials_blocklist_Components_reusableContentBlock.ExecuteAsync() in D:\Websites\Live10Rebrand\Application\Views\Partials\blocklist\Components\reusableContentBlock.cshtml:line 199
System.InvalidCastException: Unable to cast object of type 'Umbraco.Cms.Web.Common.PublishedModels.V2BannerWithOptionalSearch' to type 'Umbraco.Cms.Web.Common.PublishedModels.V2BannerWithOptionalSearchBlock'.
at AspNetCore.Views_Partials_blocklist_components_v2BannerWithOptionalSearchBlock.ExecuteAsync() in D:\Websites\Live10Rebrand\Application\Views\Partials\blocklist\components\v2BannerWithOptionalSearchBlock.cshtml:line 0
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, Boolean invokeViewStarts)
at Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)
at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.RenderPartialCoreAsync(String partialViewName, Object model, ViewDataDictionary viewData, TextWriter writer)
at Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.PartialAsync(String partialViewName, Object model, ViewDataDictionary viewData)
at Microsoft.AspNetCore.Mvc.Rendering.HtmlHelperPartialExtensions.Partial(IHtmlHelper htmlHelper, String partialViewName, Object model, ViewDataDictionary viewData)
at Umbraco.Extensions.CacheHelperExtensions.<>c__DisplayClass0_0.<CachedPartialView>b__0()
at Umbraco.Extensions.AppCacheExtensions.<>c__DisplayClass0_0`1.<GetCacheItem>b__0()
at Umbraco.Cms.Core.Cache.SafeLazy.<>c__DisplayClass1_0.<GetSafeLazy>b__0()
--- End of stack trace from previous location ---
at Umbraco.Cms.Core.Cache.ObjectCacheAppCache.Get(String key, Func`1 factory, Nullable`1 timeout, Boolean isSliding, String[] dependentFiles)
at Umbraco.Cms.Core.Cache.DeepCloneAppCache.Get(String key, Func`1 factory, Nullable`1 timeout, Boolean isSliding, String[] dependentFiles)
at Umbraco.Extensions.CacheHelperExtensions.CachedPartialView(AppCaches appCaches, IHostingEnvironment hostingEnvironment, IUmbracoContext umbracoContext, IHtmlHelper htmlHelper, String partialViewName, Object model, TimeSpan cacheTimeout, String cacheKey, ViewDataDictionary viewData)
at Umbraco.Extensions.HtmlHelperRenderExtensions.CachedPartialAsync(IHtmlHelper htmlHelper, String partialViewName, Object model, TimeSpan cacheTimeout, Boolean cacheByPage, Boolean cacheByMember, ViewDataDictionary viewData, Func`3 contextualKeyBuilder)
at AspNetCore.Views_Partials_blocklist_Components_reusableContentBlock.ExecuteAsync() in D:\Websites\Live10Rebrand\Application\Views\Partials\blocklist\Components\reusableContentBlock.cshtml:line 199