Error and Exception Handling in an ASP.NET Core API Project There are various places within an ASP.NET Core API project that an error, or exception can occur. This can make figuring out how best to handle them confusing. ASP.NET Core does come with some basic error handling out-of-the-box with its default templates, but this can… Continue reading Error and Exception Handling in an ASP.NET Core API Project
I have been running an older version of Ground School that was based on WordPress at https://www.morzaviation.com for some time now. I kept both applications running simultaneously to give users a chance to move over to Ground School on their own time, but software doesn’t die easily. Even with the massive improvements to UX and… Continue reading Using .htaccess for permanent redirects
Most software applications are developed by a team instead of by one person which can result in different coding standards being applied. Even with just a single developer, over time, the standards this developer uses can change. This can make working with a code-base confusing because similar things are implemented differently throughout the codebase. Static… Continue reading Using .editorconfig for Static Code Analysis (SCA)
ASP.NET Core supports a easy-to-use method of implementing background task processing. This makes use of the IHostedService interface. These can be run as a standalone project, or as part of a normal ASP.NET Core site. If you want to run it as a standalone project, the Microsoft Documentation is your best guide, and so I… Continue reading ASP.NET Core Background Tasks with IHostedService
When using Basic Authentication with HttpClient, the header values need to be Base64 encoded. The resulting code will look like this: This was a short post, but something that confused me recently and so I thought I would share it.
I recently got this error in Visual Studio for Mac when setting everything up for iOS development: Failed to synchronize email@example.com account with Apple Developer Portal. “Failed to resolve forward links for Apple Developer Portal client. Reason: Please check your internet connection or try again later.” After receiving it, I did the usual process of… Continue reading Failed to resolve forward links for Apple Developer Portal client
I have seen this issue occur now and again with a Xamarin Android installation on Windows. It seems to occur after a Visual Studio update which also updates the Xamarin Android installation. Often, the SDK installation gets corrupted, and when trying to repair it, this error is raised. Usually, it’s possible to fix the issue… Continue reading Fix Xamarin Android Issue – “Access to the path ‘adb.exe’ is denied.
Introduction It is not possible to specify custom attributes for a user using the Azure portal for Azure AD (at least at the time of writing). Custom attributes (called extension attributes in Azure AD) for a user can only be set using Microsoft’s Graph API. Luckily, Microsoft makes it easy to use the API by using the Graph… Continue reading Working with Extension Attributes Using Microsoft Graph
When designing an application, we must often build user-interface (UI) elements which are used in more than one place. When writing code, we usually try to follow the DRY (Don’t Repeat Yourself) principle, and we should strive to do the same when working with the user-interface. In .NET MAUI/Xamarin Forms, we can build a user… Continue reading Custom Components in .NET MAUI / Xamarin Forms
I have a project where I need to migrate a large and complicated ASP.NET application running on .NET Framework to .NET 6. This migration is further complicated by the fact that the application is currently running in production using Microsoft Azure’s Cloud Services offering. This is an older form of deployment which predates the newer App Service. Unfortunately, Cloud Services does not ship with native .NET… Continue reading Running a .NET 6 ASP.NET Application on Azure Cloud Services