Let’s begin with a little thought experiment. Imagine you’re responsible for the next release of your company’s flagship product, and today is the big day: you’re about to give a demo presentation for all the big shots in the company. The CTO is obviously there, since she’s your boss. The CEO is there as well, along with the VP of …
Web API Error Handling: How To Make Debugging Easier
 Whether you’re the consumer or producer of an API, you’ve no doubt seen that good error handling can make debugging easier. And you may have noticed that error handling works best when everyone speaks the same language and has the same expectations. But what makes for good error handling? And how can we implement it and ensure consistency across our …
Free Entity Framework Profiler to View SQL Query Performance
Picture this: you’re standing in the largest meeting room in your company. Behind you, a huge LED monitor. In front of you, all members of the C-suite. The CTO, your direct boss, is visibly nervous. The CEO looks interested and somewhat excited. The CFO looks happier than usual, though it probably has more to do with his very successful golf round …
Top 10 .NET Debugging Tips
The best-laid plans of mice and men still go off the rails sometimes. Even when you’ve been rigorous and put unit tests in place, there are times when you’ll want to jump in and debug an application or a unit test. In this article, we’ll take a look at 10 tips for .NET debugging. 1. Setting Breakpoints A breakpoint is …
How To Build Resilient Applications with Polly
Handling errors properly have always been an important and delicate task when it comes to making our applications more reliable. It is true that we can’t know when an exception will happen, but it is true that we can control how our applications should behave under an undesirable state, such as a handled or unhandled exception scenario. When I say …
Entity Framework Core Tutorial
Who doesn’t love a little bit of data access? Most line-of-business applications are built over some sort of data storage, and nine times out of ten it is a relational database. SQL has a long and distinguished pedigree dating back to some time in the 1980s. Unfortunately, relational data doesn’t match the way we use it in object-oriented languages. To …
Learn ASP.NET: 30 Tutorials, Resources, Websites
 Microsoft ASP.NET is a web development framework that’s used to build dynamic web pages, interactive web services, and robust data-driven web applications. It is a part of Microsoft .NET framework. ASP.NET stands for Active Server Pages Network Enabled Technologies. In 2002, Microsoft released the first version of the ASP.NET framework. It was based on the CLR (Common Language Runtime), which …
NLog vs log4net vs Serilog: Compare .NET Logging Frameworks
Logging information in .NET, or really in any production application, is invaluable. In many cases, developers don’t have direct access to the production environment to debug issues. Good quality logs are the difference between solving problems like Sherlock Holmes and stumbling upon solutions like Inspector Jacques Clouseau. As you can imagine, we’re pretty big on logging here at Stackify, and …
Serilog Tutorial for .NET Logging: 16 Best Practices and Tips
Serilog is a newer logging framework for .NET. It was built with structured logging in mind. It makes it easy to record custom object properties and even output your logs to JSON. Note: You can actually check out our other tutorials for NLog and log4net to learn how to do structured logging with them also! In this article, we are …
ASP.NET Core Testing Tools and Strategies
Don’t be that developer who is woken up in the middle of the night because of some problem with the web application. After all, you need your beauty sleep – some of us more than others. The best way to avoid problems with your application is to test thoroughly. Of course, there is a cost to testing, and it is …
Writing Multitenant ASP.NET Core Applications
A multitenant web application is one that responds differently depending on how it is addressed – the tenant. This kind of architecture has become very popular, because a single code base and deployment can serve many different tenants. In this post, I will present some of the concepts and challenges behind multitenant ASP.NET Core apps. Let’s consider what it takes …
What is IIS?
In this post, we’re going to take a close look at IIS (Internet Information Services). We’ll look at what it does and how it works. You’ll learn how to enable it on Windows. And after we’ve established a baseline with managing IIS using the GUI, you’ll see how to work with it using the CLI. Let’s get started! What Is …
The Evolution of C#: What’s Changed and What’s Ahead
Recently Microsoft made several changes to the C# language. Some of those may even seem quite strange – definitely not your daddy’s C# anymore The truth is, even though most of this is just “syntactic sugar” – has no equivalent in IL, in the same way that LINQ didn’t require any changes in IL too, the language is changing very …
Entity Framework vs NHibernate: Understand the Similarities and Differences
A long time before Entity Framework (EF) Core was around – or any other Entity Framework for that matter – we already had NHibernate. In this article, I’m going to review Entity Framework and NHibernate, what approaches and differentiates them. History of NHibernate and Entity Framework NHibernate is a port of Hibernate from Java, one of the oldest and most …
15 Simple ASP.NET Performance Tuning Tips
There is a lot of evidence to suggest that slow loading times and clunky interaction will drive customers elsewhere. Even in the case of internal applications where the users have no option but to use the application, their satisfaction is tightly coupled to speed. Therefore, ASP.NET performance is one of the most important considerations when building an ASP.NET application There …
The Java vs .NET Comparison (Explained with Cats)
Comparing technologies is always fun. Not that we want to start yet another programming language war, but it is really quite interesting to take a fresh look at a familiar technology and put it into perspective. Plus, it’s quite common for developers and business owners to be faced with the choice between two or more options, be it a fresh …
.NET Standard Explained: How To Share Code
You can learn how the .NET ecosystem works on Stackify. It consists of runtimes (.NET Framework, .NET Core and Mono for Xamarin), class libraries, and a common infrastructure (runtime tools and languages). In this article, we are going to talk about the thing that makes the runtimes play well together and enables them to share code. Here, you’ll learn what .NET Standard is …
How to Build Cross-Platform .NET Core Apps
One of the main reasons for using .NET Core is that you can run it on multiple platforms and architectures. So you can build an app that will run on Windows, but also on Linux, macOS and on different architectures like x86 and ARM. This is perfect for lots of scenarios, including desktop applications. You can learn about other reasons …
The .NET Ecosystem: Dive Into Runtime Tools and Languages
The .NET ecosystem consists of runtimes: .NET Framework, .NET Core, and Mono for Xamarin. If you want to learn what these runtimes are and how they are different, you should read this article about the .NET ecosystem. In this article, we are going to focus on the tools and languages that make the runtimes in the .NET ecosystem work. These are …
The .NET Ecosystem Demystified
When I think of .NET, I think of the .NET Framework and Visual Studio. The first production version 1.0 of the .NET Framework was released on February 13 in 2002. In technology years, this is light-years ago. Since then, new versions of the .NET Framework have been released and Microsoft has started efforts to keep .NET a viable development platform …