Blog Archives

The mechanics of delegates

In the first part of this series, I tried to explain what delegates are in the .NET context. Now, as promised, I’m going to explain the mechanics of delegates in particular: Declaration of a delegate type Providing an implementation compatible

Posted in .NET


When learning about a new technique/tool, I think is it is important to ask the following questions: Why i.e. what problem does this technique I’m trying to learn about solve? What i.e. what are the concepts/ideas behind the technique? How

Posted in .NET

Delegates and Events series

For a very long time, I have been what JP Boodhoo describes as being a “consumer developer” i.e. I’ve been using frameworks e.g. ASP.NET MVC, Castle Windsor, etc and generally programming at a “high level of abstraction”. Whatever the reasons

Tagged with: , ,
Posted in .NET

ASP.NET MVC Deep Dive – Routing

Oftentimes as developers we use frameworks without really knowing how hte magic happens because we are so focussed on delivery and lean upon the frameworks. So for instance, have you ever wondered how the following are achieved: How do images,

Posted in ASP.NET MVC

Global exception logging in ASP.NET MVC 4

This post is an aggregation of various posts found on the web which aim to address the issue of global logging of exceptions as well as the display of nice “error” pages in ASP.NET MVC 4. As developers, we do

Posted in .NET, ALT.NET, ASP.NET MVC, NLog

Castle Windsor NLog Integration dll versioning problem

Today I was setting up a new project that was using Castle Windsor’s NLog integration facility. However, when I tried running my ASP.NET MVC project I got the following error: Could not load file or assembly ‘NLog, Version=, Culture=neutral, PublicKeyToken=5120e14c03d0593c’

Posted in .NET, ALT.NET, Castle.Windsor, NLog, Troubleshooting

ASP.NET MVC Label display name and validation messages

This is an aide-memoire for how ASP.NET MVC will output label and error messages and what “settings” will override which ones. Model public class LoginModel {     [Required]     public string UserName { get; set; }     [Required]     [DataType(DataType.Password)]

Posted in AideMemoire, ASP.NET MVC