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 …

iis error logs yellow screen of death

IIS Error Logs and Other Ways to Find ASP.Net Failed Requests

Matt Watson Developer Tips, Tricks & Resources

As exciting as it can be to write new features in your ASP.Net application, our users inevitably encounter failed requests. Do you know how to troubleshoot IIS or ASP.NET errors on your servers? It can be tempting to bag on your desk and problem your annoyance.  However, Windows and ASP.NET provide several different logs where failed requests are logged. This …

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 …

Log 4Net Guide for .NET Logging

Log4net for .NET Logging: The Only Tutorial and 14 Tips You Need to Know

Matt Watson Developer Tips, Tricks & Resources

If you’ve been writing code for any reasonable amount of time, then it’s virtually impossible that you haven’t handled logging in any way, since it’s one of the most essential parts of modern, “real life” app development. If you’re a .NET developer, then you’ve probably used some of the many famous logging frameworks available for use at this platform. Today’s …

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 …

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 …

What is Blazor? Your Guide to Getting Started

Simon Timms Developer Tips, Tricks & Resources

For years now, if you wanted to write code to run in a browser, your choices were JavaScript or JavaScript. For a couple of brief periods on certain browsers, there were other languages you could use, but they weren’t significant: VBScript on IE and Dart on a special build of Chrome. There are also languages that compile down to JavaScript (TypeScript, …

ELMAH Is Dead. Get More Detailed Exceptions With Retrace

Phil Vuollet Developer Tips, Tricks & Resources, Stackify Product & Company Updates

For many years, ELMAH was the go-to logging utility for ASP.NET. It caught exceptions that came up through the IIS response pipeline and logged them along with contextual information. It also put a subpage on your site that you could visit to view logged exceptions. It was a great tool for catching, logging, and viewing unhandled exceptions for monolithic ASP.NET …

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 …

Web API Error Handling: How To Make Debugging Easier

Sylvia Fronczak Developer Tips, Tricks & Resources

 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

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 …

How To Build Resilient Applications with Polly

Geovanny Alzate Sandoval Developer Tips, Tricks & Resources

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 …