Blog Archives

ASP.NET Anti-Forgery Tokens internals

Anti-Forgery Tokens were introduced in ASP.NET in order to prevent Cross-Site Request Forgeries. There are many sites which describe how to use and configure those tokens in your application. But in this post I’m going to show you what exactly

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

Reference Source, dotPeek and source code debugging

Not so long ago Microsoft has made .NET source code browsable through a really nice page: Additionally, they promised that the .NET Framework source code debugging will finally work in Visual Studio. At almost the same time JetBrains published

Tagged with: , , ,
Posted in CodeProject, PDB files usage

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

Get every new post delivered to your Inbox.

Join 36 other followers