Tag: C#

  • HTTP Error 500.30 – ASP.NET Core App Failed to Start on IIS: Simple Things to Check First

    I recently hit this error after migrating an application from classic ASP.NET (.NET Framework) to ASP.NET Core on IIS. Instead of loading the site, IIS displayed the dreaded: HTTP Error 500.30 – ASP.NET Core app failed to start The page listed the usual Microsoft suggestions: Along with the standard troubleshooting advice: While all of these…

  • Building a Dockerized C# Email Tester: A Step-by-Step Guide 📧🐳👨‍💻

    As developers, we often need to test email functionality in our applications. But how can we do that efficiently, especially when working with Docker containers? In this tutorial, I’ll walk you through the process of creating a Dockerized C# Email Tester. We’ll cover everything from setting up the project to sending test emails—all within a…

  • String Literal Cheat Sheet (Python, C#, JS)

    String Literal Cheat Sheet (Python, C#, JS)

    Python Python uses f-strings for string interpolation. Here’s an example: In this code, the variables name and age are inserted into the string using curly braces {}. C# C# uses string interpolation with the $ symbol. Here’s an example: In this code, the variables name and age are inserted into the string using curly braces {}. JavaScript JavaScript uses template literals for string interpolation. Template literals are…

  • Converting from DOCX to PDF for thumbnails

    Converting from DOCX to PDF for thumbnails

    I recently needed to show some thumbnails of docx files online. Here is what I came up with. Please note that this will not create a perfect thumbnail. In fact its quite basic. It allows the user to simply see that the file contains something. Nevertheless, I hope you find it helpful! Here is the…