This post shows you how you can possibly fix the BoolFailedException

Here was my scenario

I wanted to deploy my site to a new location, install umbraco to a new database and use uSync Complete to send all of the settings, content and media.

I cleared out the Umbraco.Core.ConfigurationStatus from the appSettings in the web.config file and I also deleted the database connection string.

If you do this and run the site, it will go through the install screens. This is where you can give a new database connection string. It's really handy when you are deploying your site to another server and you have uSync Complete to send the settings, media and content.

Instead of seeing the install screens as expected, I was seeing this error message instead.

The error message was misleading because it was saying that it couldn't see the uSync Publisher config file, but the problem was actually to do with my composers.

I hadn't set RuntimeLevel on some Compsers, and because of this they were trying to run when Umbraco was supposed to be running the Install.

So the fix was to add this to my Composers, as I only want them to run during normal Run, not at Install or any of the other Levels.

using CodeShare.Core.Services;
using Umbraco.Core;
using Umbraco.Core.Composing;

namespace CodeShare.Core.Composing
{
    [RuntimeLevel(MinLevel = RuntimeLevel.Run)] // <--- I just needed to add this
    public class RegisterServicesComposer : IUserComposer
    {
        public void Compose(Composition composition)
        {
            composition.Register<ISearchService, SearchService>(Lifetime.Request);
            composition.Register<ISiteService, SiteService>(Lifetime.Request);
            composition.Register<ISmtpService, SmtpService>(Lifetime.Singleton);
        }
    }
}

So the moral of this blog post is, don't forget to add the RuntimeLevel to your Composers.

Paul Seal

Umbraco MVP and .NET Web Developer from Derby (UK) who specialises in building Content Management System (CMS) websites using MVC with Umbraco as a framework. Paul is passionate about web development and programming as a whole. Apart from when he's with his wife and son, if he's not writing code, he's thinking about it or listening to a podcast about it.

Proudly sponsored by

Moriyama

  • Moriyama build, support and deploy Umbraco, Azure and ASP.NET websites and applications.
AppVeyor

  • CI/CD service for Windows, Linux and macOS
  • Build, test, deploy your apps faster, on any platform.
stkrs

  • Custom stickers for startups, artists and brands.
  • Bespoke easy-apply, removable, custom brand stickers printed in the UK.
elmah.io

  • elmah.io is the easy error logging and uptime monitoring service for .NET.
  • Take back control of your errors with support for all .NET web and logging frameworks.
uSync Complete

  • uSync.Complete gives you all the uSync packages, allowing you to completely control how your Umbraco settings, content and media is stored, transferred and managed across all your Umbraco Installations.