JavaScript Only Works When Firebug is Open

Please Note: If you are using a recent version of Firefox (i.e. it is 2014, not 2011 any more) you’ll notice that the console is always present – so you’ll never see this problem in Firefox again! I can see this turning into one of those staple trick-questions at interviews, because this is a genuinelyContinue reading “JavaScript Only Works When Firebug is Open”

Adding an NCover Target to MSBuild to Get Code Coverage

This article describes how to add NCover code coverage to your MSBuild scripts in an extensible way. By using and adapting the example below, you should be able to get NCover results across your entire code base, all compiled into an excellent web-based summary. You might also be interested in generating Trend reports using MSBuildContinue reading “Adding an NCover Target to MSBuild to Get Code Coverage”

Event Code 3005: An Unhandled Exception has Occurred

If you have come across this rather vague message (Event Code 3005: An Unhandled Exception has Occurred), you will have spotted that there are very few resources that give any reasonable answers on the root cause of the issue – that’s probably why you are here, so I will do my best to help. ForContinue reading “Event Code 3005: An Unhandled Exception has Occurred”

Using Visual Studio LightSwitch to Create an Application in Under Four Minutes

Visual Studio LightSwitch is a mind-blowing new offering from Microsoft, which is currently available as a public beta. The idea behind LightSwitch is to create data-backed applications without having to write any code. This sounded too good to be true, so I dedicated some time to trying it out. Three minutes and twenty seconds toContinue reading “Using Visual Studio LightSwitch to Create an Application in Under Four Minutes”

WPF BackgroundWorker and the Mysterious 0x80131623 Error

If you use Windows Presentation Foundation (WPF), you are very likely to come across the awesome BackgroundWorker and its best friend the Dispatcher. The BackgroundWorker lets you chuck a long-running process onto another thread, allowing the UI to remain responsive. When the BackgroundWorker needs to pop something on the UI, you ask the Dispatcher toContinue reading “WPF BackgroundWorker and the Mysterious 0x80131623 Error”

Fixing .htaccess Rewrite Problems with RewriteBase

I recently encountered an issue on an otherwise perfectly functioning .htaccess file, which contained mod_rewrite rules. The rules had been working for several years (since 2008 to be precise) but some patch or change on the web server suddenly caused all pages except for the home page to be unavailable. The error suggested that theContinue reading “Fixing .htaccess Rewrite Problems with RewriteBase”

Improving Your Code with NDepend and CQL

I have been talking a fair bit recently about code quality tools such as Resharper and NDepend. In this article, I will explain how to use one of the features of NDepend to improve your code quality. On of my favourite features of NDepend is the suite of “code query language” tests, which run againstContinue reading “Improving Your Code with NDepend and CQL”