Blog Archives

LowLevelDesign.NLog.Ext and ETW targets for NLog


I really like the NLog library and I use it pretty often in my projects. Some time ago I wrote a post in which I showed you my preferred debug and production configuration. Other day I presented you a simple

Tagged with: , , , ,
Posted in CodeProject, Logging with NLog

Stopwatch vs. DateTime


.NET developers usually know they should measure code performance using a Stopwatch class from the System.Diagnostics namespace. From time to time though I see code where someone uses DateTime instances for this purpose. And it’s not very surprising as DateTime

Tagged with: , , , ,
Posted in CodeProject, Profiling .NET applications

ASP.NET MVC bundles internals


The idea of minimizing and combining multiple script and style files into one file has been popular among web developers for quite some time. With the 4th version of ASP.NET MVC Microsoft introduced a mechanism (called bundles) that allow .NET

Tagged with: , , ,
Posted in CodeProject, Diagnosing ASP.NET

Injecting code into .NET applications


Recently I have been playing with Function Evaluation available in .NET debugging API. This functionality allows a managed debugger to inject some arbitrary code while the debuggee is stopped. The injected code might be simply a call to the object’s

Tagged with: , , , ,
Posted in CodeProject, Using .NET debugging API

Set process memory limit with Process Governor


Today I would like to introduce you to Process Governor – a new tool I added to my .NET diagnostics toolkit. This application allows you to set a limit on a memory committed by a process. On Windows committed memory

Tagged with: , , , ,
Posted in CodeProject, Diagnosing Applications on Windows

Configuring ASP.NET authentication log


Some time ago I wrote about ASP.NET Health Monitoring – a logging infrastructure provided by the .NET framework, easily configurable through web.config. In that post I was presenting heart beat and error events. Today I would like to show you

Tagged with: , , ,
Posted in CodeProject, Diagnosing ASP.NET

Diagnosing a collation issue in a MySql stored procedure


We are using Elmah on production to log problems in our web applications. Elmah logs are stored in a MySql table which structure is a slightly modified version of the elman_error table from the original Elmah script (I changed the

Tagged with: , , , ,
Posted in CodeProject, Diagnosing MySql, Logging with Elmah

Find a performance counter instance by a process ID


Performance Counters are a great feature of Windows which allow you to monitor applications and the whole system in a noninvasive manner. Which makes them even better is a fact that you can gather the performance data remotely. You can

Tagged with: , ,
Posted in CodeProject, Profiling Windows

Be careful with varchars in Dapper!


In this post I will show you an interesting problem that we experienced when querying a SQL Server database with Dapper. I will use a simplified data model and a sample application so you could reproduce the issue on your

Tagged with: , , ,
Posted in CodeProject, Diagnosing ADO.NET

Life of Exception in ASP.NET


In this post I’m going to show you the way ASP.NET (MVC) handles exceptions that occur in web applications. We will also examine different places where we can hook our own loggers. Our application will be a very basic ASP.NET

Tagged with: , , ,
Posted in CodeProject, Diagnosing ASP.NET
Follow

Get every new post delivered to your Inbox.

Join 28 other followers