Debugging the .NET framework source code

I am sure lots of us have been in the situation where, after hours of poring through compiled source code in Reflector whilst simultaneously trying to hold the values of hundreds of conspiratorial variables in our heads, we are left thinking that it would all be so much easier if we could just set a…


Building and deploying an Outlook 2010 Add-in (part 1 of 2)

So, you’ve cracked open your shiny new Visual Studio 2010, and you would like to build and roll out an add-in for Outlook 2010 (we’re using Outlook here, but most of the principals apply to Word and Excel also)? In this post (part 1), I’ll take you through the steps required to build a ribbon…


How does Azure identify a faulty role instance?

The Azure platform in the form of the Fabric Controller (FC) provides monitoring for a health of a role instance. The table below summarises common problems, their detection mechanism and the action taken by the fabric controller: Problem How Detected Fabric Action Role crashes Guest FC agent monitors role termination FC will request that the…


Using Reflection and Attributes for better Tracing and Logging data rendering

In most projects there is always a requirement for tracing and/or writing debugging information along with writing out log information. When dealing with objects it is usually up to the developer to override the ToString() method to ensure meaningful information is presented. However this does not always happen. Reflection presents an alternative solution to this…


Managed Extensibility Framework Overview

This blog post is going to explain what MEF is, the benefits of using MEF and then a walk through on how to implement it, followed by a screen shot demo. What is MEF? The Managed Extensibility Framework, otherwise known as MEF, is essentially a “.NET Dating Service”. I call it a dating service because…


Dynamically Changing the Display Language in Silverlight

On a recent Silverlight project we had a requirement to be able to dynamically change the language of the site without refreshing the page. This ruled out the normal way of doing localisation using Resource files and meant we had to find away of binding text strings to a ‘Dynamic Resource’.  Given that Silverlight doesn’t…


Ruby on Rails on Windows Azure with SQL Azure

I was recently talking to a customer about the possibility of moving a web site from Linux to Windows Azure. The hosting costs of the application are not excessive, and the customer is happy with the service received. Nevertheless they were very interested in exploring the hosting costs and potential future benefits of the Windows…


Running Memcached in Windows Azure

Memcached is a distributed cache used to help speeding up large scale web applications by taking pressure off the database. Memcached is used by many of the internet’s biggest sites.   A distributed cache is one of the things that I’ve been hoping to see released for Windows Azure for quite a while, and I…


Dynamic XML Reader with C# and .Net 4.0

Along with the new features of .Net 4.0 (including the long awaited Tuple classes, BigInteger, extra Code Access Security stuff, and a brilliant new feature Code Contracts) is the dynamic keyword. This keyword is designed to allow better COM interoperability. Although it probably won’t make an appearance in everyday programming, it will help with interop…