Hosting .NET Core Web Applications on Ubuntu Server with Apache
Background For a while, I hosted all my websites on a dedicated Windows server with 1&1 (now IONOS) which was perfect for me, as several of them were ASP.NET web…
Background For a while, I hosted all my websites on a dedicated Windows server with 1&1 (now IONOS) which was perfect for me, as several of them were ASP.NET web…
One of the first issues I encountered when building data-driven Blazor pages is the dreaded NullReferenceException when trying to reference a page component from within the OnInitializedAsync override. Given the…
Introduction Okay, Blazor isn't exactly brand new. First announced over three years ago, it's been in public preview since March 2018. However, with the release of .NET Core 3.1 in…
Recently I was tasked with deploying a new version of my company's website onto a clean Windows Server 2012 host and encountered a rather frustrating issue with the dreaded "500…
If you ever need to debug a Visual Studio extension to diagnose problems or just test that it's behaving how you expected, it's quite easy to do by taking the…
Whenever I develop a new MVC-based website there is always a question of how best to implement caching so that it's unobtrusive and fits neatly with the standard Repository pattern…
Introduction While working on a recent personal project, I had the not-too-unfamiliar pleasure of fighting Entity Framework to try and get some half-decent performance out of a console application that…
Recently I needed to generate a service contract interface for a third-party client based on their specification. My client would be hosting the service so we would be providing our…
Recently I switched hosting providers and had to update an existing project to work against a MySQL database instead of SQL Server. After successfully creating the MySQL database and porting over all the data (which turned out to be a major chore and worthy of a post in itself…), I went to update my website to target the MySQL database only to find out (having forgotten completely) that I’d used Linq-to-SQL (L2S) as the ERM and, of course, L2S only supports SQL Server (thanks Microsoft!). So began what I thought would be a painful process of migrating to Entity Framework…
Which actually turned out to be rather easy! If you’re needing to do the same thing, here’s the process I followed and some pointers/things to remember:
(more…)