Stackify ASP.Net Performance Monitoring

ASP.NET Performance Monitoring: A Developer’s How to Guide

Matt Watson Developer Tips, Tricks & Resources, Popular

Monitoring hasn’t traditionally been designed for developers or applications. With the rise of cloud computing, PaaS and even serverless applications, developers need to be much more involved in application monitoring. Comprehensive ASP.NET performance monitoring requires monitoring your application multiple ways, from server CPU usage, identifying slow web requests, slow SQL queries, garbage collection metrics, and much more. In this guide, …

What is ViewBag?

ViewBag 101: How It Works, When It’s Used, Code Examples, and More

Stackify Developer Tips, Tricks & Resources

ViewBag is a property – considered a dynamic object – that enables you to share values dynamically between the controller and view within ASP.NET MVC applications. Let’s take a closer look at ViewBag, when it’s used, some limitations, and other possible options to consider. What is ViewBag? The Microsoft Developer Network writes that the ViewBag property allows you to share …

What is Kestrel Web Server?

What is Kestrel Web Server? How It Works, Benefits, and More

Stackify Developer Tips, Tricks & Resources

Kestrel is open-source (source code available on GitHub), event-driven, asynchronous I/O based server used to host ASP.NET applications on any platform. It’s a listening server and a command-line interface. You install the listening server on a Windows or Linux server and the command-line interface on your computer. It was launched by Microsoft along with ASP.NET Core. All ASP.NET Core apps utilize a …

What is IIS Express?

What is IIS Express? How It Works, Tutorials, and More

Stackify Developer Tips, Tricks & Resources

Previously, when developers built and tested ASP.Net sites and applications, they use one of these two servers: Visual Studio’s ASP.NET Development Server and the Windows’ IIS Web Server. Each option has its pros and cons. Then, an increasing number of developers expressed their desire to have a server that exhibits the characteristics of user-friendly ASP.NET Development Server along with the …

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

What did my code just do? That is a critical question that developers always need to know. Application logging, tracing, and profiling are the primary ways that developers can answer this question. In this article, we’ll review ASP.NET tracing and how to view your tracing statements with Prefix. Intro to ASP.NET Tracing Tracing is built into the .NET framework and has …

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 …

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

Null reference errors are responsible for a good percentage of all application bugs. They are usually very simple problems caused by not adding additional logic to ensure that objects have valid values before using them.  Here are some ways to avoid NullReferenceException. The following code will throw a NullReferenceException if the variable “text” being passed in is null. You can’t call …

How to Deploy ASP.NET Core to IIS & How ASP.NET Core Hosting Works

Matt Watson Developer Tips, Tricks & Resources, Live Queue

Previously, I discussed the differences between Kestrel vs IIS. In this article, we will review how to deploy an ASP.NET Core application to IIS. Deploying an ASP.NET Core app to IIS isn’t complicated, but ASP.NET Core hosting is a little different than ASP.NET. How to Configure Your ASP.NET Core App For IIS The first thing you will notice when creating …

How to Deploy ASP.NET Core Web App to Azure & How to Use Retrace With ASP.NET Core

Barry Luijbregts Developer Tips, Tricks & Resources, Insights for Dev Managers

ASP.NET Core is the latest version of ASP.NET. It is built from the ground up using .NET Core, the lightweight, composable new .NET Framework. Some people love it, some don’t. However, this is the future. Microsoft will move forward with .NET Core and in the future, the regular, full-fledged versions will go away. I like ASP.NET core a lot. It …

w3wp tips

What is w3wp.exe? Learn the Basics About IIS Worker Processes

Matt Watson Developer Tips, Tricks & Resources

Web applications running within Microsoft’s Internet Information Services (IIS) utilize what is known as IIS worker processes. These worker processes run as w3wp.exe, and there can be multiple per computer. It is possible to run IIS on a Windows desktop or Windows server, although it is usually only seen on Microsoft Windows Servers configured as web servers. What is w3wp.exe …

ASP.Net Core Logging

ASP.NET Core Logging Tutorial – What Still Works and What Changed?

Matt Watson Developer Tips, Tricks & Resources

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 …

iis error logs yellow screen of death

IIS Logs, Error Logs and More – 6 Ways to Find Failed ASP.NET Requests

Matt Watson Developer Tips, Tricks & Resources

Your web application is throwing some sort of error or invalid response. Do you know how to troubleshoot IIS or ASP.NET errors on your servers? Luckily, Windows and ASP.NET provide several different logs where failed requests are logged beyond simple IIS logs.   Get to Know the 4 Different IIS Logs You are probably familiar with normal IIS logs, but …

Prefix: A lightweight ASP.NET profiler helping you write better software

Stackify Developer Tips, Tricks & Resources

Of all the modern development practices which I use day to day, none other has been more beneficial to me than the introduction of quick feedback loops in my workflow. Although a concept made popular by the Agile methodology and practices, it’s something most of us deal with when we invoke the compiler (or linter) which tells us if our …

5 Hidden Performance Problems for ASP.NET

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

  Stackify founder and ASP.NET performance expert Matt Watson shares his expertise around five common ASP.NET performance problems. Learn how to identify and fix these elusive problems in your own apps and immediately improve your app’s performance! Watch the video from last week’s webinar. The deck is available here: http://www.slideshare.net/mwatson81/5-hidden-performance-problems-for-aspnet