Skip to main content

Posts

How to fix "contained database authentication" when importing an Azure SQL Database .bacpac into local SQL Server Express

If your bacpac import into a local SQL Server Express instance fails with Msg 12824, the fix is one sp_configure setting and a clean re-import. It takes about two minutes. I hit this while setting up the new Umbraco v17 site on my laptop. I took a .bacpac export of the latest live database and tried to restore it into SQL Server 2025 Express ( MSSQL17.SQLEXPRESS ), using Import Data-tier Application in SQL Server Management Studio with Windows Authentication. The import ran for a while, then stopped with "Could not import package". The error The important lines are the two SQL72014 errors. The SQL72012 warnings about _Data and _Log files are harmless leftovers from the failed attempt. Error SQL72014: Framework Microsoft SqlClient Data Provider: Msg 12824, Level 16, State 1, Line 5 The sp_configure value 'contained database authentication' must be set to 1 in order to alter a contained database. Error SQL72045: Script execution error. The executed script:     ALTE...
Recent posts

I'm an Umbraco MVP for the fifth year running!

Every year, Umbraco recognises the people who have gone above and beyond with their contributions to Umbraco projects and community, and I am pleased to announce that I am honoured to be renewed as an Umbraco MVP for the fifth consecutive year.  To celebrate this achievement, I also wrote an article which you can read here.  Thank you, Umbraco, and the Umbraco community, for their fantastic support in making this happen once more! #h5yr 

I'm an Umbraco MVP for the fourth year running!

Every year, Umbraco recognises the people who have gone above and beyond with their contributions to Umbraco projects and community, and I am pleased to announce that  I am honoured to be renewed as an Umbraco MVP  for the fourth consecutive year.  Thank you, Umbraco, and the Umbraco community, for their fantastic support in making this happen once more! #h5yr 

Umbraco Forms Custom Workflows Tip: How to redirect to another page other than the default thank you page after submitting an Umbraco Forms form

Umbraco Forms  is an add-on for Umbraco CMS that allows you to easily create forms and link them to your content pages. After the form submissions, you can redirect your web users to a "thank you" page using the built-in "Submit message / Go to page" workflow. However, what if you want to redirect to a page dynamically based on the data submitted by the end user? Custom workflow to redirect  One of the best solutions is to create a custom Umbraco Forms workflow based on requirements.  For Umbraco v13+ websites, rather than using the HttpContext to redirect, which won't work out of the box for your custom workflow, you should use the WorkflowExecutionContext to set the GoToPageOnSubmit property of your form, like this. context . Form . GoToPageOnSubmit = goToPage . Id ; It is as simple as this. You can now do your tests and dynamically redirect your users to the next page after the form submissions. Full code using ProjectName . Website . Core . FormExtension...

How to resolve "InvalidOperationException: Cannot resolve 'ProjectName.SendEmailCustomUmbracoWorkflow' from root provider because it requires scoped service 'ProjectName.ICustomServiceName'"

When you access a custom service from within your Custom Umbraco Workflow or a similar environment, you may encounter an "Invalid Operation Exception." This error typically occurs because you are attempting to use a scoped service within a singleton context. Solution If you need to use a scoped service within a singleton, inject IServiceScopeFactory into the singleton. Then, create a scope to pull out your context when needed. using ProjectName . Microsites . Cms . DataAccess . Constants ; using ProjectName . Web . Services . Interfaces ; using Newtonsoft . Json . Linq ; using Umbraco . Forms . Core ; using Umbraco . Forms . Core . Attributes ; using Umbraco . Forms . Core . Enums ; using Umbraco . Forms . Core . Persistence . Dtos ; namespace ProjectName . Web . UI . Workflows {     public class CrmFieldMapper : WorkflowType     {         private readonly ILogger < CrmFieldMapper > _logger;         private ...

How to resolve "The access level is set to private because anonymous access is disabled on this storage account." while creating a new Azure Blob Storage container

If you want to create a new Azure Blob Storage container and see the following "Anonymous access level" restriction, below are the steps that you can follow to resolve this restriction. Problem I can not add a container due to the following access level restriction.  Solution This restriction is due to the "Allow Blob anonymous access" setting being set to Disabled. After selecting the Enabled option and saving the changes, I can add my new container with the access level setting that I want.

Solutions Architect Notes: Key Responsibilities

A Software Solutions Architect is responsible for designing and overseeing the implementation of software solutions that align with business needs and technical requirements .  Solution Architects often take on various roles depending on the projects they're involved in. However, for many of these projects, there are some key responsibilities that remain consistent. Key Responsibilities Solution Design and Architecture Define the overall structure and components of software solutions. Choose appropriate technologies, frameworks, and platforms. Ensure scalability, security, and performance in system design. Requirement Analysis Work with stakeholders to understand business needs. Translate requirements into technical specifications. Identify potential risks and constraints. Technology Selection and Integration Evaluate and recommend suitable technologies and tools.  Ensure seamless integration with existing systems and third-party services. Optimise software for future scalabi...