Umbraco Failed to Boot
Have you just upgraded Umbraco from v11 to v12 and run into this error?
Umbraco.Cms.Core.Exceptions.BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details. at Umbraco.Cms.Core.Exceptions.BootFailedException.Rethrow(BootFailedException bootFailedException) at Umbraco.Cms.Web.Common.Middleware.BootFailedMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>cDisplayClass6_1.<1>d.MoveNext() --- End of stack trace from previous location --- at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.Invoke(HttpContext httpContext, Boolean retry) at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
This could be that in newer .net versions, the default value to trust server certificates has been changed to false.
The fix is to add thew following to the connection strings in the appsettings.json file:
;TrustServerCertificate=True
So for example if your connection string is:
server=server.mydomain.com;database=myumbracodb;user id=Umbraco;password='mYP@s3w0rddd'
Then it should look something like this:
server=server.mydomain.com;database=myumbracodb;user id=Umbraco;password='mYP@s3w0rddd';TrustServerCertificate=True
That's it.
Published at 10 Oct 2023, 15:25 PM
Tags: Umbraco