Find Slow Queries

Performance Tuning in SQL Server Tutorial: Top 5 Ways to Find Slow Queries

Matt Watson Developer Tips, Tricks & Resources, Popular Leave a Comment

SQL performance tuning is a never ending battle. I’m not a DBA, but I am a developer who has pretended to be one for 15 years.  I have worked with SQL Server databases with terrabytes of RAM all the way down to Stackify’s massive fleet of little SQL Azure databases. I have seen a little bit of everything over the …

Learn how to support and show performance

Understanding & Profiling C# Async Await Tasks

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

Microsoft and the .NET community have made asynchronous programming very easy with their implementation of async await in C#. The latest versions of ASP.NET heavily utilize it to improve performance. Many performance monitoring and profiling tools struggle to support and visualize the performance of asynchronous C# code. Stackify’s Prefix & Retrace products both have excellent support for applications using C# async await. …

Unhandled Exceptions

How to Catch All Exceptions in C# & Find All Application Errors

Matt Watson Developer Tips, Tricks & Resources Leave a Comment

Exception handling is a critical component of every software application. The last thing you want is your users to see weird errors, or even worse, your application keeps crashing. In this article, we are going to discuss how to find and catch all exceptions in C# applications. .NET provides several different ways to catch exceptions and view unhandled exceptions. Topics …

DotNet Errors and How to Fix Them

Top .NET Software Errors: 50 Common Mistakes and How to Fix Them

Stackify Developer Tips, Tricks & Resources Leave a Comment

Developing in .NET provides several powerful benefits, including less overall code, improved security, ease of updates/changes, and language independence. That said, the system isn’t without errors and problems. From common exceptions to coding mistakes to incorrect assumptions, most of these issues come down to programmer error. The list below shares the 50 top .NET software errors from around the web. …

Important Skills for .NET Developers

20 Development Leaders and .NET Pros Reveal the Most Common Skills & Characteristics of Great .NET Developers

Stackify BuildBetter, Developer Career Development, Developer Tips, Tricks & Resources Leave a Comment

Microsoft’s .NET Framework is incredibly popular, and its widespread use is one of the reasons C# is gaining ground as one of the most popular and most-used programming languages. What’s more, .NET Core, a modular, open-source (check out the code on GitHub) development stack that’s already used by ASP.NET and .NET Native, is quickly gaining speed, which will heavily influence the …

What's a C# Throw Exception?

How to Throw C# Exceptions Like a Major League Pro: Examples, Best Practices, and Everything You Need to Know

Stackify Developer Tips, Tricks & Resources Leave a Comment

Practically everyone who has ever used a web page or an app has encountered an exception at one point or another, but they probably didn’t realize what it was. Exceptions are pretty common ways to handle unexpected inputs but are they always the right way to handle such problems? In this post, we’ll take a closer look at C# exceptions, …

What is RestSharp?

What is RestSharp? An Introduction to RestSharp’s Features and Functionality

Stackify Developer Tips, Tricks & Resources Leave a Comment

RestSharp is one of the several ways to create a web service or web request in .NET; we discuss a few other such options in this post. In today’s post, though, we’ll take a look at RestSharp specifically, its features and benefits, and a few examples of RestSharp in action. Definition of RestSharp RestSharp is a comprehensive, open-source HTTP client library …

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 Leave a Comment

Need help on how to monitor IIS? This guide covers how to cover the basics including HTTP ping checks, IIS Application Pools, and important Windows Performance Counters. We 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. From Basics to Advanced …

How to Monitor # of Exceps Thrown / Sec

Understanding # of Exceptions Thrown / Sec and How to Find Exceptions

Matt Watson Developer Tips, Tricks & Resources, Popular Leave a Comment

Exceptions can cause big performance problems. One of the most important performance metrics to track about your application is “# of Exceps Thrown / Sec“. It is available via Windows Performance Counters under the category .NET CLR Exceptions. In this article we will talk about exceptions, how to monitor your exception rate and find the actual exceptions being thrown. Is …

How to Generate C# Random Numbers, Pseudo vs Secure Random Numbers

Matt Watson Developer Tips, Tricks & Resources Leave a Comment

Random numbers are used in a wide variety of software applications. Depending on what you are using random numbers for, you will need to decide which type to use. For a music jukebox, the accuracy is not very critical. For something like a lottery or slot machine, the random number generator must be extremely accurate.  Read on to learn more …

How to Find Unhandled Exceptions

What is an Unhandled Exception and How to Find Them

Matt Watson Developer Tips, Tricks & Resources Leave a Comment

What is an Unhandled Exception? An exception is a known type of error. An unhandled exception occurs when the application code does not properly handle exceptions. For example, When you try to open a file on disk, it is a common problem for the file to not exist. The .NET Framework will then throw a FileNotFoundException. This is a simple example …

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 What is an Exception? Exceptions are a type of error that occurs during the execution …

Dependency Injection C#

What is Dependency Injection C#? How It Works, Types of Dependency Injections in C#, and More

Stackify Developer Tips, Tricks & Resources Leave a Comment

In a recent blog post, we talked about how C# and .NET are the next big thing. If you’re planning to code in C#, dependency injection is just one of many things you should know. Read on for a primer on dependency injection in C# so you can use it to your advantage in your next project. Definition of Dependency …

Troubleshoot High .NET App CPU in Production

How to Troubleshoot High .NET App CPU in Production

Matt Watson Developer Tips, Tricks & Resources Leave a Comment

One of our .NET background services running as an Azure Worker Role uses a lot of CPU and runs on a bunch of servers. I decided to spend some time today to see if I could troubleshoot high CPU usage in production. I documented how I went about solving the problem with ANTS and Process Hacker so hopefully, it could help others! …

WinDbg to Analyze .NET Crash Dumps - Async Crash

Using WinDbg to Analyze .NET Crash Dumps – Async Crash

Jason Taylor Developer Tips, Tricks & Resources Leave a Comment

Last week, I had an urgent request from a client that we know well. They had an IIS app pool that was experiencing frequent crashes, and they couldn’t figure out why. Even though it fell out of the scope of Retrace, they thought we might be able to help. We love these sort of requests here, because it gives us …

Microsoft.Extensions.Logging

How to Use LoggerFactory and Microsoft.Extensions.Logging for .NET Core Logging With C#

Matt Watson Developer Tips, Tricks & Resources Leave a Comment

If you have used .NET Core, you have probably battled with the new built-in .NET Core LoggerFactory which is in Microsoft.Extensions.Logging. It has created a lot of confusion around logging with ASP.NET Core. At Stackify, we have logging integrations for log4net, NLog, Serilog, and our direct API. We have a lot of experience with building logging appenders and libraries to work with various …

implement a Web API with ASP.NET Core

Goodbye Web API: Your Guide to RESTful APIs with ASP.NET Core

Matt Watson Developer Tips, Tricks & Resources Leave a Comment

When ASP.NET Core was released, Microsoft and the .NET community decided to merge the functionality of MVC and Web API. This makes sense since the two have always been very similar. We went through the process of making an ASP.NET Core Web API with various scenarios and came up with these tips for anyone out there wanting to do the …