Why has my MVC site stopped working?

I am currently upgrading a .NET Core 3.1(LTS) MVC website to run on .NET 6, stepping it through intermediate .NET versions to make sure some EF Migrations were done correctly. Everything upgraded without any major issue until the final step to .NET 6. As soon as I did this my MVC pages failed to render, but no error was reported After much fiddling the solution to the problem was pointed out to me by one of my colleagues....

July 28, 2022 · 2 min · Richard Fennell

Cannot retrieve Umbraco node

We recently hit a problem when we tried to edit a page on anold Umbraco 7 instance. When we tried to edit a page in the Umbraco web UI we got the error ‘failed to retrieve data for content id 1119’ Now this page had been created a long time ago by a user who had since left the company, and this was the root cause. It seems there is an issue with Umbraco and deleted users....

July 25, 2022 · 1 min · Richard Fennell

Social Media Posts after Migrating from WordPress to Hugo Static Pages

I posted recently on my experience moving to Hugo from WordPress. One feature lost in the move were the Wordpress plugins used to automatically post to Twitter and LinkedIn when a new blog post was created. I always found this very useful, so looked or a way to replicate this functionality for static pages. The solution I ended up with was Azure Logic Apps. I created a Logic App with a scheduled triggered that checked my blogs’s RSS feed every 30 minutes....

July 7, 2022 · 1 min · Richard Fennell

Migrating from WordPress to Hugo Static Pages

Background Over the years, the Black Marble blog server has been hosted on many platforms. It’s previous incarnation was WordPress, running as a network of sites with an aggregated feed. Of late we had found this slow to serve the first page (due to website start-up time) and there was the constant need to keep the instance patched. The time had come for a new solutions, and we picked Hugo Static Pages....

July 1, 2022 · 3 min · Richard Fennell

Don't skimp on resources for GHES for demo instances

I wanted to have a look at some GitHub Enterprise Server (GHES) upgrade scenarios so decided to create a quick GHES install on my local test Hyper-V instance. Due to me skimping on resources, and making a typo, creating this instance was much harder than it should have been. The first issue was I gave it a tiny data disk, this was down to me making a typo in my GB to Bytes conversion when specifying the size....

June 16, 2022 · 2 min · Richard Fennell

Fix for can't add second outlook.com account to Outlook Desktop - requires non-existent PIN

I was recently trying to set up a copy of the Outlook desktop app with two outlook.com email accounts and hit a strange issue. I was able to add the first one without any problems, but when I tried to add the second one I got an error message asking for PIN, and most importantly on the same dialog showing the second outlook.com email address. This is confusing as I know of no way to set a PIN on an outlook....

June 10, 2022 · 1 min · Richard Fennell

Adding Job Summary support to my GitHub Release Notes Action

A recent addition to GitHub Actions is the ability to create a custom job summary. Using a simple echo command in a script you can write to the job summary steps: - name: Adding markdown run: echo '### Hello world! :rocket:' >> $GITHUB\_STEP\_SUMMARY Now, this got me thinking. I have a well-used custom release notes extension for Azure DevOps. It has a GitHub Action equivalent, but it does not seem to get as much usage....

May 19, 2022 · 1 min · Richard Fennell

Fix for cannot 'TypeError: Cannot read property' when Dependabot submits a PR to upgrade a Jest Module

GitHub’s Dependabot is a great tool to help keep your dependencies up to date, and most of the time the PR it generates just merges without a problem. However, sometimes there are issues with other related dependencies. This was the case with a recent PR to update jest-circus to 28.x. The PR failed with the error TypeError: Cannot read property ’enableGlobally’ of undefined at jestAdapter (node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:39:25) at TestScheduler.scheduleTests (node_modules/@jest/core/build/TestScheduler.js:333:13) at runJest (node_modules/@jest/core/build/runJest....

May 19, 2022 · 1 min · Richard Fennell

On-Demand video available for May's 'Microsoft and GitHub DevOps Forum: DevSecOps'

Did you miss the ‘Microsoft and GitHub DevOps Forum: DevSecOps’ event I presented at earlier in May? Well worry not, the on-demand stream is now available - here

May 17, 2022 · 1 min · Richard Fennell

More examples of using custom variables in Azure DevOps multi-stage YML

I have blogged in the past ( here , here and here) about the complexities and possible areas of confusion with different types of Azure DevOps pipeline variables. Well here is another example of how to use variables and what can trip you up. The key in this example is the scope of a variable, whether it is available outside a job and the syntax to access it Variables local to the Job So, if you create your variable as shown below...

May 5, 2022 · 1 min · Richard Fennell