Error and Exception Handling in an ASP.NET Core API Project

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

Published in
Categorised as Other

Using .editorconfig for Static Code Analysis (SCA) 

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) 

Published in
Categorised as Other

Using Basic Authentication with HttpClient

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.

Published in
Categorised as Other

Windows Dev Center: Invalid Package Family Name and Invalid Package Publisher Name

When submitting an application, or an update to one in the Windows Dev Center, you may come across the following two errors after uploading your application package:  Invalid Package Family Name  Invalid Package Publisher Name  There appears to be a bug within Visual Studio or the Windows Dev Center where the correct certificate is not used when… Continue reading Windows Dev Center: Invalid Package Family Name and Invalid Package Publisher Name

Using Fiddler to inspect HTTP traffic

I recently ran into a problem where I was trying to make REST calls to Microsoft’s Azure Notification Hub service to register new devices with a custom template registration. According to the documentation as of 2021/08/17, the following XML is required to create a template registration for Windows devices:  When I used this, I got a 200 OK response from the… Continue reading Using Fiddler to inspect HTTP traffic

Preparing for and writing the AZ-204 (Microsoft Certified Developer Associate) Exam

Why I took the exam I was recently asked to obtain the Microsoft Certified: Azure Developer Associate certification by the company I work for so that they can become a Gold-level Microsoft Partner. The requirement was to obtain the certification in 3 weeks. I have been working with Microsoft Azure each day for the past… Continue reading Preparing for and writing the AZ-204 (Microsoft Certified Developer Associate) Exam