NET provides several ways to catch exceptions and view unhandled exceptions.
Logging Levels 101
If you’re a software developer, then you understand how vital application logging is in software development and a critical part of logging is something called logging levels. Log entries generally contain essential information—such as a timestamp, a message, and sometimes additional stuff like an exception’s stack trace. Those pieces of information are useful because they allow someone reading the log entry to …
Top .NET Software Errors: 50 Common Mistakes and How to Fix Them
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. …
How to Throw C# Exceptions Like a Major League Pro: Examples, Best Practices, and Everything You Need to Know
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
The ASP.NET framework provides built-in settings to control how to respond when application errors occur. This functionality is part of the Web.Config customErrors settings 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’s web.config file. Usually, it is set in the web.config file for your application. CustomErrors …
Best Practices for Error Handling in ASP.NET MVC
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 …
Understanding # of Exceptions Thrown / Sec and How to Find Exceptions
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 …
What is an Unhandled Exception and How to Find Them
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 …
Software Error vs Exception – In Real World Examples
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 …
Carbonite: “We turned on Retrace, within minutes we’ve identified the performance issue”
” 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 …
3 Data Sets That Bring Context to Exceptions
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 …
3 Ways to Improve Troubleshooting Exceptions
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 …