Archive for the ‘Uncategorized’ Category

Most of the time, when programming against the Microsoft CRM Web service, we get reasonable error messages. However, on occasion we get the inscrutable “Generic SQL Error”. I used to solve these by trial and error or intuition, but it turns out that there is better way. Using SQL Server profiler can give us the […]


I’m continuing my series of posts on configuration patterns in .NET. One of the things I had to do recently was to retrofit some code that I was writing to use an alternate configuration file. That is, I needed the ability to specify file from the commandline to grab a config section rather than having […]


Here is a quick post to outline the different ways that .NET custom config files can be written. The MSDN documentation does a bad job generally at giving examples of what the actual XML markup looks like in their examples. They go through all of the different types involved without showing what the desired markup […]


I have built a few tools to make life easier for myself. One of the tools that has proven itself invaluable is a metadata generator that I use to create a list of entities in a newly-created CRM bizorg. Although the API supports most things that we’d want to do, there are a few tricky […]


I have been meaning to write a post on configuration patterns in the .NET framework. Just about any app we write has some configuration data associated with it, and it sometimes gets ignored until the app is in production or at the very least until very late in the development cycle. Microsoft provides a lot […]


If you’re like me, you have clients behind firewalls and special development environments configured to mirror the client’s environment for local testing. In my case a lot of my development environments have Microsoft CRM installed on them as a self-contained development environment replete with Active Directory. This means that the virtual machine does not have […]


I’ve been cleaning up a lot of projects lately, and one of the things that I really needed to get sorted out was build scripts for everything so that I had a repeatable way of obtaining correct binary builds of all of my dependencies. Typically I would use msbuild or NAnt to define how the […]