Over the past few years, I’ve become more and more convinced that having really good production logs is critical to running a successful software deployment. Logging has always been important, however if you’re deploying a web of microservices and a business transaction might span twenty different services, then searchable centralized logging is crucial. There are plenty of great tools available …
How to Use Performance Counters with .NET Core: Current Solution, Alternatives, and the Future
Performance counters are really important for monitoring and troubleshooting problems with your .NET applications. The full .NET Framework provides a wide array of performance counters that are very useful for troubleshooting application problems. Some examples of important performance counters are garbage collection and exception rates. Without these, you will be flying blind. In this article we will discuss how to …
Top 13 ASP.NET Core Features You Need to Know
ASP.NET is one of the most successful web application development frameworks by Microsoft. With every update, new and extended features are added that help developers deploy highly scalable and high-performance web applications. When coupled with application monitoring and other performance tools, such as a profiler, ASP.NET becomes a powerful solution for building incredible apps. Within the framework itself, there are …
.NET Core 2.1 Release: What To Expect in 2018
.NET Core 2.0 was made publicly available on August 14. Besides .NET Core, .NET Standard 2.0 was released, the standard to which .NET Core 2.0 complies, as well as Entity Framework Core 2.0 and ASP.NET Core 2.0. Pretty cool, all have the same version number, but I’m sure this won’t go on forever! I almost forgot about NuGet, which also …
.Net Core Dependency Injection
What is Dependency Injection? Dependency Injection (DI) is a pattern that can help developers decouple the different pieces of their applications. It provides a mechanism for the construction of dependency graphs independent of the class definitions. Throughout this article, I will be focusing on constructor injection where dependencies are provided to consumers through their constructors. Consider the following classes: class Bar …
How to Monitor Windows Services: Performance, Errors, Usage
It seems like everyone these days is writing cool ASP.NET web applications. However, we all know that a lot of the real work is still done behind the scenes in background services. Buying something on Amazon no doubt kicks off a waterfall of tasks that are done behind the scenes to fulfill a single order. Including verifying stock, shipping, contacting …
How to Monitor Azure WebJobs: Performance, Errors, Usage
Azure Cloud Services and App Service made it relatively easy to run web applications in the cloud. Developers still need a simple way to run tasks on a schedule at pre-defined times or specific intervals . We commonly use simple console apps via the Windows Task Scheduler to handle these needs. WebJobs were released as part of Azure App Service …
Web Service Monitoring With Retrace
Today’s applications depend on a wide array of 3rd party and internal web services. Retrace’s web service monitoring capabilities have always been able to monitor how often your code accesses any type of HTTP web services over REST, SOAP, etc. This includes popular external services like Twilio, SendGrid, Amazon S3, or others. It also would include your own microservices. We …
How to Call WCF Services and Create SOAP Services with ASP.NET Core
If you are looking to use SOAP or WCF with ASP.NET Core, you are not alone. It is one of the most searched for and requested features for .NET Core. In this article, we will discuss how to consume a WCF SOAP service from your .NET Core application. We also show how to create and host a SOAP service with …
.NET Core DLL Hell Is Here. Can .NET Core 2.0 Save Us?
One of the promises of .NET, when it came out 15 years ago, was eliminating DLL hell. Back then it was more of an issue with registering COM DLL files. Fast forward to today and the world of mixing .NET Core, .NETStandard and .NET Framework projects have brought a whole new DLL hell. Let me walk you through my .NET …
Dev Leaders Share Their Favorite ASP.NET Interview Questions
If you’re in the market for a new development job, you know that interview questions related to roles focused on specific programming languages can be quite complex. Even if you’re an experienced veteran in ASP.NET, you can never prepare too much for your next interview. We reached out to a panel of ASP.NET pros and development leaders to learn about …
ASP.NET Performance Monitoring: A Developer’s How to Guide
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, …
ASP.NET Razor Pages vs MVC: How Do Razor Pages Fit in Your Toolbox?
As part of the release of .NET Core 2.0, there are also some updates to ASP.NET. One of those is the addition of a new web framework for creating a “page” without the full complexity of ASP.NET MVC. New Razor Pages are a slimmer version of the MVC framework and in some ways an evolution of the old “.aspx” WebForms. …
.NET Core 2.0 Changes – 4 Key Things to Know
UPDATED! .NET Core 2.0 was officially released 8/14/2017! Read more: ASP.NET Razor Pages vs MVC: How Do Razor Pages Fit in Your Toolbox? .NET Core 2.1 Release: What To Expect in 2018 Why C# and .NET Core Are the Next Big Thing Top 13 ASP.NET Core Features You Need to Know So, what is changing with .NET Core 2.0? 1. …
ViewBag 101: How It Works, When It’s Used, Code Examples, and More
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? How It Works, Benefits, and More
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? How It Works, Tutorials, and More
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 …
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 …
How to Deploy ASP.NET Core Web App to Azure & How to Use Retrace With ASP.NET Core
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 …