error MSB4236 The SDK Microsoft.NET.Sdk specified could not be found

Background Recently I was working on a website built before dotnetcore was even a thing. It was targeting an older version of the original .NET Framework. I am slowly modernizing it. Firstly I upgraded the nuget packages and re-targeted it to .NET Framework version 4.8. Next, as the solution was split into many projects I was able to migrate many of these projects to be netstandard. The idea is that all that is left is...

Continue Reading

SSL error on downlevel windows versions

The other day I was going to test and debug some code on a Windows Server 2012RC machine. When running my asp.net core 3.1 razor pages website I encountered the exception: ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY This site worked fine elsewhere so to try and narrow down the problem I created a brand new asp.net core website to see if it was something in my code that was the issue but I had the same error showing up in...

Continue Reading

homebrews cellar version of mono breaks omnisharp

So today, I raised a GitHub issue because after I had opened the result of dotnet new mvc in VSCode the problems window would have approximately 120 issues and the code editor window would be full of red squiggles. I was running the very latest version of dotnetcore And the very latest version of VSCode I had not changed anything in the .csproj file. It was fresh from running dotnet new mvc from the terminal....

Continue Reading

HTTP Error 500.30 - ANCM In-Process Start Failure

I host an aspnetcore website on a Windows Server 2012 R2 running IIS on Amazon AWS and it’s generally fast and stable. However, the past two nights the server has restarted unexpectedly leaving the website down with the following error message: HTTP Error 500.30 - ANCM In-Process Start Failure The first night a simple IISRESET command was all that was needed to get the site running again, however, last night it did the same thing....

Continue Reading

Unable to locate package dotnet-sdk-3.1

Every time there is a new release of dotnetcore I need to get it updated on the three environments where I develop and deploy code: macOS, Windows and Linux (Ubuntu). Homebrew and Chocolatey update the version of dotnetcore for me automatically, sometimes there is a delay but they will eventually update them. However, for Linux each release of dotnetcore I always have to manually intervene and install it manually. If you follow the instructions from...

Continue Reading