Unhandled Exceptions

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

Matt Watson Developer Tips, Tricks & Resources

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

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. …

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

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, …

How to Use Web.Config customErrors for ASP.NET

Matt Watson Developer Tips, Tricks & Resources

The ASP.NET framework provides built-in settings to control how to respond when an application error occurs. This functionality is part of the Web.Config customErrors section. Configuration Options for Web.Config <customErrors> Like most web.config settings, customErrors can be configured within the Machine.config, root web.config or your application web.config file. Usually, it is set per application. CustomErrors supports the following modes: On – …

Get tips for error handling in ASP.Net

Best Practices for Error Handling in ASP.NET MVC

Matt Watson Developer Tips, Tricks & Resources

Error handling is an important part of any application. ASP.NET provides several different ways to handle errors. In this article, we will review MVC error handling best practices. 5 Ways to do MVC Error Handling Between .NET, ASP.NET, and MVC there are several potential ways to handle application errors. Web.Config customErrors MVC HandleErrorAttribute Controller.OnException method HttpApplication Application_Error event Collect exceptions via …

How to Monitor # of Exceps Thrown / Sec

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

Matt Watson Developer Tips, Tricks & Resources, Popular

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 …

Software Error vs Exception – In Real World Examples

Matt Watson Developer Tips, Tricks & Resources

After 15+ years of software development, I still use the words error and exception interchangeably. But is there a difference between error and exception? I think it is best to make the distinction with some examples of errors vs exceptions. Example #1: Dishwasher Errors Let’s use this example of a dishwasher. Both images depict a problem, or error, that happened with …

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 …

Carbonite and Retrace APM

Carbonite: “We turned on Retrace, within minutes we’ve identified the performance issue”

Stackify Stackify Product & Company Updates

” We turned on APM+ and within a couple of minutes were able to identify the issue and a few hours later push out a fix.” Who is Carbonite? Carbonite is a leading provider in backup recovery and archiving solutions for small businesses and home users.  We fuel continuity by providing powerful yet simple tools to help keep businesses in …

Context to exceptions

3 Data Sets That Bring Context to Exceptions

Craig Ferril Insights for Dev Managers

Even the smallest exception can cause material damage to your company’s operations, which, in turn can have repercussions on revenue. So it’s obviously important to have a grasp on your plan to track and troubleshoot exceptions.  It seems like a simple enough process – the exception is raised, you look at it, and then make changes to your app so …

Improve app troubleshooting

3 Ways to Improve Troubleshooting Exceptions

Craig Ferril Insights for Dev Managers

Your application is perfect, flawless in every way and always works… right? It’s more likely you spend a fair portion of your time troubleshooting problematic behavior in your applications – probably more than you’d care to.  And that’s not because your code is necessarily buggy; it’s because applications have become far more complex than they used to be. Your company …