Unit Testing Microsoft Dynamics CRM 2011 Plug-ins with Microsoft Fakes

Visual Studio 2012 Ultimate ships with a new isolation framework called Microsoft Fakes. This article describes how we can use Microsoft Fakes to unit test plug-in code without a dependency on a Microsoft Dynamics CRM 2011 server, allowing us to easily test logic in isolation, from a known state.  This post assumes a certain level…


Silverlight Async with Visual Studio 2012

A frequent complaint I hear from developers working on Silverlight applications for Microsoft Dynamics CRM is that they have to use asynchronous methods when communicating with the CRM web services. Asynchronous methods and callbacks are not particularly complex concepts or even challenging to program, but real complexity arises when you have a dependency chain of…


CRM Reporting and SQL 2012 AlwaysOn Availability Groups – Better Together

The Problem A common issue that I have come across in CRM deployments, particularly for Enterprise customers, is deadlocking on the SQL server resulting in a degraded performance of our CRM environment. I’ve experienced severe impact of this deadlocking to the degree that other CRM SQL processes are aborted resulting in errors being presented to the…


Adam Caulkett

Hi Everyone! In September 2011, I joined Microsoft as a Consultant within the Microsoft Consulting Services Dynamics CRM UK team. My primary focus is the design and implementation of Dynamics CRM Infrastructure supporting primarily Enterprise customers. My roles since 2000 have ranged from a system engineer to consultant and support analyst roles across the Microsoft…


User Impersonation with Silverlight

Sometimes it’s useful for Dynamics CRM to think you’re someone else. An administrator may wish to retrieve or alter data as if they were another user, or execute certain special commands on someone else’s behalf. Developers using the Microsoft.Xrm.Sdk will find that implementing this functionality is quite straight forward, as it’s built into the SDK…


Dave Burman

I’ve been developing software professionally since 2007.  During this time, I’ve been fortunate enough to work on a huge variety of projects, whilst gaining exposure to most of the Microsoft development stack.  I’ve been working with Dynamics CRM since 2010 and thoroughly enjoy pushing the boundaries of the product on a daily basis. I joined…