FileSystemWatcher intermittently throws an exception on Linux

In my quest of hosting my ASP.NET Core web sites on Linux, I encounter an intermittent exception: System.IO.IOException: The configured user limit (128) on the number of inotify instances has been reached. at System.IO.FileSystemWatcher.StartRaisingEvents() at System.IO.FileSystemWatcher.StartRaisingEventsIfNotDisposed() ... This exception occurs when I instanciate a FileSystemWatcher. To protect… [read more]

Adding a free SSL certificate to a website hosted on nginx using Let's Encrypt

In the previous post, I showed how to publish an ASP.NET Core website to Linux. In this post, I'll show you how to secure your website using a free SSL certificate provided by Let's Encrypt. Get a free SSL certificate using Let's encrypt certbot is the tool provided by let's encrypt to generate a certificate. First, you need to install it: sudo add-apt-repository ppa:certbot/certbot sudo apt-get update… [read more]

Publishing an ASP.NET Core website to a Linux host

I recently move my web site to a Linux host, remember, .NET Core is multi-platform 😃 This choice is mainly motivated by the price. Indeed, you can find many cheap VPS providers (Virtual Private Server) on the internet. For instance, you can choose OVH. They have great VPS for about 3€ per month (I'm not paid by them, but I've been using their services for a few years without any issue). Hosting a site on… [read more]