Asp.NET Core is, well, the vNext of .NET. This category describes my adventures with the exciting new generation – wait, not only generation, but a PARADIGM – of Microsoft’s CLR that does what Java was supposed to do, and does it well.
According to Microsoft, ASP.NET Core is the open-source version of ASP.NET, that runs on macOS, Linux, and Windows. ASP.NET Core was first released in 2016 and is a re-design of earlier Windows-only versions of ASP.NET. With ASP.NET Core, you can:
Build web apps and services, IoT apps, and mobile backends.
Use your favorite development tools on Windows, macOS, and Linux.
Deploy to the cloud or on-premises.
Run on .NET Core or .NET Framework.
So, in short, ASP.NET Core is a cross-platform, high-performance, open-source framework for building modern, cloud-based, Internet-connected applications.
I tend to post a lot of articles about different gotchas and configuration tweaks, but this one goes back to the roots a bit – just me and a couple of other devs hacking some code together and being blocked by a bit of an obstacle, that’s then fixed by…Continue reading How to access claims of a SignalR user in ASP.NET Core?
This article describes how to configure your .NET Core application to serialize objects in camelCase instead of PascalCase. I guess this is another quick note – something that should be simple, but I couldn’t remember how to do it from the top of my head, and the solution turned out…Continue reading How to serialize to JSON in camelCase using .NET Core?
This article explains another simple fix to an annoying issue. I guess that’s how I start most of my little tutorials, but hey, it’s true! I suppose I just have a knack for running into issues that come with poorly documented fixes or workarounds that are obvious but only in…Continue reading HttpContext.WebSockets.IsWebSocketRequest always null in .NET Core?
This was a fun one! Suddenly, while running or debugging my ASP.NET Core 3.1 application, I started getting errors about missing assemblies, along the lines of “FileNotFoundException: Could not load file or assembly Microsoft.AspNetCore.Components.Forms”. These DLL files were not required a minute earlier – nor did requiring them really make…Continue reading Fixing unexpected Microsoft.AspNetCore package errors after a dependency update
Yikes – ever ran into this error after deploying your ASP.NET Core web application to an Azure App Service? Yeah, me too. And when it’s a production deployment, and the error didn’t happen in test/QA environment, that’s even more fun. This article describes a couple of ways to fix it,…Continue reading How to fix “HTTP Error 500.32 – ANCM Failed to Load dll”
This article describes how to fix the error “There was an error running the selected code generator: ‘Failed to load the dll from \bin\Debug\netcoreapp\win-x86\hostpolicy.dll, HRESULT: 0x800700C1 An error occurred while loading required library hostpolicy.dll’” when you’re adding a new scaffolded item (such as a Razor page or ASP.NET Core MVC…Continue reading Adding new MVC/Razor items fails throwing an error about hostpolicy.dll
Sometimes you’ll need the default identity for your ASP.NET Core application, but want to disable the registration of new users. Sounds pretty basic, right? However, there’s actually no easy switch you can just flip to enable or disable said functionality. I went through a lot of different articles and ideas…Continue reading How to disable “Register” action in ASP.NET Core?
Another case, where there’s plenty of documentation, but it just doesn’t seem to be comprehensive enough or just doesn’t apply for any of the cases that I have – for whatever reason. Maybe my cases are wrong, or I’m just bad at googling, but I’ve struggled to find a good…Continue reading Iterating Group memberships using Claims in .NET Core