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 …
What is Dependency Injection C#? How It Works, Types of Dependency Injections in C#, and More
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 …
How to Troubleshoot High .NET App CPU in Production
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! …
10 Reasons To Use Docker with ASP.NET
When you think of Docker, you probably don’t think of .NET or Windows. There are a lot of good reasons to use Docker with ASP.NET. Check out our top 10 list of reasons to use Docker with .NET to see if Docker can help you! 1. Pre-Made Runtime Environment Generally, when you set up a server machine (or virtual machine), …
Using WinDbg to Analyze .NET Crash Dumps – Async Crash
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 …
How to Use LoggerFactory and Microsoft.Extensions.Logging for .NET Core Logging With C#
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 …
Goodbye Web API: Your Guide to RESTful APIs with ASP.NET Core
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 …
ASP.NET Core Logging Tutorial – What Still Works and What Changed?
If you are getting started with ASP.NET Core, you are probably wondering what has changed with logging. In short, the answer is both nothing and everything. The common logging libraries you have always used with .NET still work. Microsoft does provide its own interface for logging with .NET Core and it uses it for .NET internals. In this article, we …
New Relic .NET Core Alternative: Stackify Retrace APM
One of the most requested features by New Relic users is support for .NET Core. If you aren’t familiar with it, .NET Core is Microsoft’s newest version of the .NET framework that is leaner, faster, open source, and can even run on Linux. Does New Relic Support .NET Core? Not as of January 2017, a full year after …
Application Insights – 16 things every developer needs to know
Application Insights is Microsoft’s lightweight application performance monitoring service. I have collected a nice list of things that every developer should know. Including tips, key features, and limitations. 1. Make sure your app targets .NET 4.6, and .NET 2.0 is not supported There are some changes in the 4.6 version of the .NET framework that enables some additional data collection …
Debugging Windows Services with Prefix
Prefix enables developers to easily see what their code is doing as they write and test their code, including SQL queries, HTTP calls, errors, logs, and much more. Prefix is most often used with web applications, but .NET Windows Services are also supported. This article discusses how to use Prefix with a Windows Service or console application. Learn more about …
Prefix vs Glimpse: SQL Queries
This article is meant to illustrate a high-level comparison of how Prefix and Glimpse track SQL queries. While the two tools are similar (they’re both designed to help us understand different elements of our code’s performance) the two products have some unique pros and cons. Here’s a comparison based on our own experience with both tools. How to enable Glimpse …
Application Support Tools from Stackify
Developers, DevOps, and CTOs/CIOs are turning to Stackify for its incredibly useful set of application support tools. Including Application Performance Monitoring (APM+), error tracking, log management, and server monitoring. A key component of Stackify’s application support tools, APM+, offers an enormous amount of code-level insights making it easy to find slow web requests and quickly pinpoint at the code level …
APM+ v2.2, even better .NET Application Performance Management
We are very excited to release APM+ v2.2 today! We first released APM+ for ASP.NET in April and have been working tirelessly to make it the best APM product on the market for ASP.NET application performance management. We think today is that day! First off, special thanks to everyone has used the product to date and all of your wonderful …
How GWB Found Hidden Exceptions and Application Performance Problems
Exceptions in .NET can be very expensive when it comes to CPU cycles. Read how Geeks with Blogs (http://geekswithblogs.net) used Retrace to improve the performance of their application. About Geeks with Blogs (GWB) Thousands of software developers use Geeks with Blogs (GWB) to host their own personal blog. The code base has slowly morphed and has been modified by several developers over …
Retrace is Transforming The Way .NET Developers Optimize Application Performance
Today at Stackify, we’re very proud to announce the launch of our new product, Retrace APM+. This first release specifically targets ASP.NET, but as the platform continues to grow, support will be added for other popular programming languages. More details will be announced later this year. Stackify Retrace builds on top of the great foundation of our current offering, known for great real-time …
C# Redis – Implementing Cache Tagging
Redis has quickly become one of the top open source key value stores around. We at Stackify have been using Windows Azure’s Managed Cache but have had a long history of intermittent problems with it. So we decided it was time to bite the bullet and give Redis a try, which Azure now supports and actually recommends it over their previous …