Troubleshooting

Solved: Azure Functions in Azure Container Apps - Unable to resolve service for type IHostingEnvironment while attempting to activate DefaultApplicationInsightsServiceConfigureOptions

As mentioned in my previous post I am currently switching my wife's eshop from Azure App Services to Azure Container Apps. The solution itself uses an Azure Functions project to perform asynchronous operations triggered via queued messages and uses Azure Application Insights for logging and monitoring.

Solved: Standalone React Project - The {directory} contains files that could conflict.

I recently came across this tutorial on the new standalone javascript projects in Visual Studio 2022 via this blog post courtesy of Scott Hanselman. I was excited with the prospect of having standalone javascript projects inside of Visual Studio. Unfortunately I couldn’t move past the first step of creating the project as I was getting

Solved: Contacts not showing in Android Messages App

The Problem My wife has been having an issue with her One Plus phone where the details of some contacts were not appearing in the Messages app. Even weirder, sometimes the contact details would show and other times they would disappear. I tried different things to try to sort this issue out such as: Clearing

Solved: NETSDK1045: The current .NET SDK does not support targeting .NET Core 3.1.

I recently started working on a new project with .NET Core 3.1 using Azure DevOps as my CI/CD pipeline. I was using an on premise build agent (not hosted) with Visual Studio 2019 and teh .Net Core 3.1 SDK installed on it. I started getting the following error in the Nuget Restore step when attempting

Solved: Cannot create container for service traefik: invalid volume specification: '/var/run/docker.sock: /var/run/docker.sock:ro'

I’ve been exploring Docker containers and using Traefik as a reverse proxy. I was trying to get the Docker example from https://docs.traefik.io/user-guides/docker-compose/basic-example/ to work with Windows Containers. When I tried to start the containers with the example, Docker returned the following error: ERROR: for traefik Cannot create container for service traefik: invalid volume specification: ‘/var/run/docker.sock:/var/run/docker.sock:ro’

Solved: "This version of Microsoft.AspNetCore.App is only compatible with the netcoreapp2.1 target framework. Please target netcoreapp2.1 or choose a version of Microsoft.AspNetCore.App compatible with netcoreapp2.2."

I’ve been working on a project using .Net Core 2.2. During the course of development I needed to add an SQL Database project to the solution. Everything was building correctly on my local machin, however, the build started failing when I committed and pushed to Azure Devops. The initial issue was that the SQL Database

Solved: The current .NET SDK does not support targeting .NET Standard 2.0.

I wanted to contribute to Ocelot, however when I tried to build the solution I got this error: “The current .NET SDK does not support targeting .NET Standard 2.0. Either target .NET Standard 1.6 or lower, or use a version of the .NET SDK that supports .NET Standard 2.0.” This blog post details the steps

Workaround: Docker Container Cannot be Started After Windows Restart

Recently I’ve been testing out Docker for Windows. You can find more information on my experience here and here. Today, I started getting strange errors when I tried to start a container in docker. The error I was getting was: Error response from daemon: driver failed programming external connectivity on endpoint cranky_panini: Error starting userland