Archives for Language features, Development Methodologies - Page 19
The located assembly’s manifest definition does not match the assembly reference
Introduction This is more of a maintenance issue than anything else. Often, you end up referencing open source / 3rd party assemblies – that need to be upgraded to newer…
Is SQL Server’s locking overly pessimistic (and what to do about it)?
Introduction For a while now, the production database that is part of my current project, has been throwing SQL Server deadlock exceptions. Deadlocks are usually caused by resource contention –…
The ‘params’ keyword in c#
Introduction I was confused by the appearance of ‘params’ in the signature of a method (see example snippet below). It seemed redundant – even if I removed it, the method…
Async and Await, an easy way to keep your user interface responsive
Introduction Normally, when you invoke a method, it is invoked synchronously on your calling thread. Since you made no provision to ‘unblock’ the main thread, the method essentially ‘blocks’ the…
Mirroring versus Replication
Both replication and mirroring are methods of transferring data from a primary database to a secondary database. However, they both serve different purposes – and are used in completely different…
Quick deadlock inspection in SQL Server
Introduction Deadlocks occur when multiple processes (usually two) are trying to access the same resource. Sql Server decides – after a specified period of time – to terminate one of…
LucidChart and draw.io – useful, free drawing tools
Ever wanted to quickly throw together an architectural diagram, a UML diagram or any diagram for that matter? Not everyone has access to Visio or an advanced drawing tool. LucidChart…
svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted
Usually, an svn cleanup fixes most issues with tortoise svn. However, I ran into an issue which caused me some grief. The specific error I was seeing: Previous operation has…
The Publish Subscribe Pattern in C# and some gotchas
This post does three things: Provides a complete implementation of the publish subscribe pattern in C#. Highlights 4 potential issues that are inherent to ANY publish subscribe implementation – including…