Get tips to solve null reference exception

What Is NullReferenceException? Object reference not set to an instance of an object

Matt Watson Developer Tips, Tricks & Resources

“Object Reference Not Set to an instance of an object.” Cast the first stone those who never struggled with this error message when they were a beginner C#/.NET programmer. This infamous and dreaded error message happens when you get a NullReferenceException. This exception is thrown when you try to access a member—for instance, a method or a property—on a variable …

C# Exception Handling Best Practices

Matt Watson Developer Tips, Tricks & Resources

Welcome to Stackify’s guide to C# exception handling. In this article we cover the following topics: Basics about C# Exceptions, including examples Common .NET Exceptions How to Create Your Own Custom C# Exception Types How to Find Hidden .NET Exceptions C# Exception Logging Best Practices Why is this topic so important? In modern languages like C#, “problems” are typically modeled …

Read our practical guide and learn how to measure and improve .NET performance, and make your apps as effcient and optimized as possible.

.NET Performance Optimization: Everything You Need To Know

Jared Nance Developer Tips, Tricks & Resources

It’s Friday afternoon, the majority of the development staff has already packed up and headed home for the weekend, but you remain to see the latest hotfix through to production. To your dismay, immediately after deployment, queues start backing up and you begin to get alerts from your monitoring system. Something has been broken and all evidence points to an …

Find out why you need 3 different types of .NET profilers

List of .Net Profilers: 3 Different Types and Why You Need All of Them

Matt Watson Developer Tips, Tricks & Resources

.NET Profilers are a developer’s best friend when it comes to optimizing application performance. They are especially critical when doing low level CPU and memory optimizations. But did you know that there are three different types of profilers? Traditional .NET profilers that track process memory usage, time spent per line of code and frequency of method calls. Lightweight profilers or other …

Get tips to monitor IIS Performance

How to Monitor IIS Performance: From the Basics to Advanced IIS Performance Monitoring

Matt Watson Developer Tips, Tricks & Resources, Popular

Need help on how to monitor IIS? This guide covers the basics, including HTTP ping checks, IIS Application Pools, and important Windows Performance Counters. We’ll also take a look at how to use an application performance management system to simplify all of this and get more advanced IIS performance monitoring for ASP.NET applications. Without monitoring IIS performance, you could end …

Find Slow Queries

SQL Performance Tuning: 7 Practical Tips for Developers

Matt Watson Developer Tips, Tricks & Resources, Popular

Being able to execute a SQL performance tuning is a vital skill for software teams that rely on relational databases. Vital isn’t the only adjective that we can apply to it, though. Rare also comes to mind, unfortunately. Many software professionals think that they can just leave all the RDBMS settings as they came by default. They’re wrong. Often, the …

A Start-To-Finish Guide to Docker for .NET

A Start-To-Finish Guide to Docker for .NET

Daniel Hilgarth Developer Tips, Tricks & Resources

Docker: it’s one of those technologies that seems to be everywhere. Whether you’re a junior developer just starting out or a seasoned .NET developer, at some point in your career, you’ll most likely come across Docker for .NET. So, what is Docker? According to Wikipedia, “Docker is a set of coupled software-as-a-service and platform-as-a-service products that use operating-system-level virtualization to develop and …

The Best C# Tutorials

Learn C#: Tutorials for Beginners, Intermediate, and Advanced Programmers

Angela Stringfellow Developer Tips, Tricks & Resources

Are you trying to teach yourself to code? Or are you already an experienced developer who wants to pick another language? In both cases, you know how frustrating it can be to find good tutorials online. Sure, it’s easy to find “tutorials”, but separating the chaff from the wheat is a whole different story. Of course, you have to pick …

List of top features and tips for ASP.NET

Advanced ASP.NET Trace Viewer – WebForms, MVC, Web API, WCF

Matt Watson Developer Tips, Tricks & Resources, Stackify Product & Company Updates

Software is a complex thing. As soon as you deploy an application to production—especially when you don’t have any control over the environment it’s running on—anything could happen. You’ve created this “monster” and set if free. It’s now free from your control. How do you tame this beast before it creates havoc? The first step is to trace its steps …

WCF Exception Handling Tutorial and Best Practices

Peter Morlion Developer Tips, Tricks & Resources

WCF, or Windows Communication Foundation, was the technology to use in a .NET-focused service-oriented architecture (SOA) in the second half of the 2000’s. Its SOAP approach may have been surpassed by REST principles, but there are still many WCF services out there. Many of them are now considered legacy applications, but they continue to provide important functionalities to companies around the …

Free NHibernate Profiler to View SQL Query Performance

Carlos Schults Developer Tips, Tricks & Resources

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 …

Free Entity Framework Profiler to View SQL Query Performance

Carlos Schults Developer Tips, Tricks & Resources

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

Simon Timms Developer Tips, Tricks & Resources

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 …

Entity Framework Core Tutorial

Simon Timms Developer Tips, Tricks & Resources

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 …

NLog vs log4net vs Serilog: Compare .NET Logging Frameworks

Simon Timms Developer Tips, Tricks & Resources

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 …

Microsoft IIS Web Server

IIS Web Server

Phil Vuollet Developer Tips, Tricks & Resources

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 …

Entity Framework vs NHibernate: Understand the Similarities and Differences

Ricardo Peres Developer Tips, Tricks & Resources

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 …

SSL authentication logging with web debugging proxies

Debugging Tricky HTTP Problems with Fiddler and Charles

Simon Timms Developer Tips, Tricks & Resources

Almost every application these days communicates over HTTP: websites, RESTful services, and even SOAP APIs all make use of Hypertext Transfer Protocol. For the most part, we don’t worry too much about what is happening at the network level when we’re building these applications. However, from time to time a problem will show up that needs us to drop to …