Upgrade from CMS 11 to 12, bootstrapper not found error

Vote:
 

Hi all,

Need help with below issue. Currently im upgrading CMS 11 to 12 and facing this error when opening the CMS site:-

An unhandled exception occurred while processing the request.
InvalidOperationException: The view 'Bootstrapper' was not found. The following locations were searched:
CmsUIViews/Views/Shared/ElementBlocks/Bootstrapper.cshtml
CmsUIViews/FormsViews/Views/ElementBlocks/Bootstrapper.cshtml
CmsUIViews/Views/Pages/DefaultShellModule.cshtml
Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.EnsureSuccessful(IEnumerable<string> originalLocations)

Stack Query Cookies Headers Routing
InvalidOperationException: The view 'Bootstrapper' was not found. The following locations were searched: CmsUIViews/Views/Shared/ElementBlocks/Bootstrapper.cshtml CmsUIViews/FormsViews/Views/ElementBlocks/Bootstrapper.cshtml CmsUIViews/Views/Pages/DefaultShellModule.cshtml
Microsoft.AspNetCore.Mvc.ViewEngines.ViewEngineResult.EnsureSuccessful(IEnumerable<string> originalLocations)
Microsoft.AspNetCore.Mvc.ViewFeatures.ViewResultExecutor.ExecuteAsync(ActionContext context, ViewResult result)
Microsoft.AspNetCore.Mvc.ViewResult.ExecuteResultAsync(ActionContext context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|29_0<TFilter, TFilterAsync>(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext<TFilter, TFilterAsync>(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeResultFilters()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|24_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, object state, bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(ref State next, ref Scope scope, ref object state, ref bool isCompleted)
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
QDX.Business.Services.HttpExceptionMiddleware.Invoke(HttpContext context) in HttpExceptionMiddleware.cs
+
                await this.next.Invoke(context);
Microsoft.AspNetCore.Authorization.Policy.AuthorizationMiddlewareResultHandler.HandleAsync(RequestDelegate next, HttpContext context, AuthorizationPolicy policy, PolicyAuthorizationResult authorizeResult)
Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)

https://world.optimizely.com/forum/developer-forum/CMS/Thread-Container/2022/6/cant-go-to-the-cms--bootstrapper-aspx-not-found/

Tried the solutions from above link and still could not fixed.

#287794
Sep 21, 2022 10:07
Vote:
 

Which version of Optimizely CMS 12 have you upgraded too 

Have you checked the modules folder that the packages have been restored correctly. Try dotnet restore 

Could you try downgrading your version of Optimizely Forms to an earlier version. 

#287798
Sep 21, 2022 14:18
Vote:
 

https://devblog.gosso.se/2021/11/upgrading-episerver-cms-11-to-optimizely-cms-12-porting-to-net-5/

We are referring to this article to perform our upgradation. We upgraded our CMS to version 12.0.3.

Tried dotnet restore, clean and rebuild solution still the same.

We are using the earliest version of Episerver.Forms 5.0.0 which compatbile with net5.

Any new ideas?

#287879
Edited, Sep 22, 2022 5:00
Vote:
 

Yi Hao, Could you perhaps upgrade straight to latest on all packages and install .net6 sdk on your local ?

Remember to delete your modules/_protected, bin and obj folder to give it a good clean out.

#287919
Sep 22, 2022 14:38
Vote:
 

I'm having a look at the Forms packages and cant seem to find Bootstrapper.cshtml in any of these are you sure its not part of any bespoke development or another package that was not migrated over ?

An example I have is with Episerver.Samples not migrated to .Net 5/6 when upgrading our solution we had a lot of issues with the visitor groups and some other form fields that were provided as part of this package

#287920
Sep 22, 2022 15:17
Vote:
 

Have you installed AddOn.Episerver.Settings ? 

Have a look at this issue : https://github.com/LinusEkstrom/AddOn.Episerver.Settings/issues/37 

#287922
Sep 22, 2022 15:29
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.