Creating a Cloud Service (Extended Support) Deployment

Overview  Microsoft has announced that Cloud Services (classic) will be retired on 31 August 2024. Their recommendation is to move to a new deployment model based on ARM called Cloud Services (extended support).  While many things remain the same in the new deployment model, there is one notable and major difference – Cloud Service resources… Continue reading Creating a Cloud Service (Extended Support) Deployment

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

Running a .NET 6 ASP.NET Application on Azure Cloud Services

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

Using Multiple Namespaces to Increase Active Devices with Azure Notification Hubs

Introduction This is a follow up to my previous 3-post blog series on Learning Azure Notification Hubs. At the time of writing, on the free tier, there is a limit of only 500 active devices per namespace. The basic plan increases this to 200 000 devices for about $10 (USD) a month. While $10 is not… Continue reading Using Multiple Namespaces to Increase Active Devices with Azure Notification Hubs

Implementing Azure Notification Hubs – Part 3 (API Project and Testing)

The complete solution for this can be found on my GitHub account. In launchSettings.json, remove the IIS settings as well as Launch Browser, Launch Browser URL and the HTTPS URL. I prefer to run the application directly instead of through IIS and using HTTPS can sometimes cause issues while testing UWP applications. You could use HTTPS by installing and trusting the development certificate provided by ASP.NET… Continue reading Implementing Azure Notification Hubs – Part 3 (API Project and Testing)

Implementing Azure Notification Hubs – Part 2 (Shared and App Projects)

The complete solution for this can be found on my GitHub account. We will start work in the shared project as the classes we create here will be required by both the API and the Xamarin application projects.  DTOs  In the root directory of the project, create a folder called Dtos which will contain DTO classes that will be… Continue reading Implementing Azure Notification Hubs – Part 2 (Shared and App Projects)

Implementing Azure Notification Hubs – Part 1

Introduction  Sending push notifications to devices is a requirement of most applications. Unfortunately implementing this is not as simple as you would expect. Azure offers a service called Notification Hubs which makes implementing this feature easier, but there is still a fair bit of manual work involved.  Azure Notification Hubs offers a free tier that… Continue reading Implementing Azure Notification Hubs – Part 1

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

Using Swagger/OpenAPI with an ASP.NET Core API Project

Introduction  I recently had a new task where I had to add Swagger/OpenAPI to an ASP.NET Core API project. This was my first-time integrating Swagger/OpenAPI in an ASP.NET Core project so I planned to create a simple test project to see how everything fitted together. My first point-of-call was to consult the Microsoft documentation on this, and while it is covered, I wanted a complete start-to-finish project showing… Continue reading Using Swagger/OpenAPI with an ASP.NET Core API Project