ASP.NET Core - Precompiling razor views

Improving the startup time of your website is important. There are many reasons for a website to take times to get ready: loading lots of dll, loading data, compiling views, etc. In this post, I'll explain how to reduce the startup time by precompiling razor views. The view precompilation is a build step that generates a DLL from the cshtml. Instead of doing the view compilation at runtime the first time… [read more]

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]

Creating a chat bot from a FAQ with Azure Q&A Maker

In many web applications I use, I can see a chat panel in the bottom right zone of the page. This is a great functionality to get help with a product. On the product I work on, we also have this kind of panel. Lot's of customer use it, so it's time consuming. Depending on the popularity of your product, you can spend from a few minutes to a few hours per day. If you analyse the question asked, you can see… [read more]