Convert String To Proper Case

by Matt 12. October 2011 15:28
It's a piece of code I wish I didn't use nearly as often I did, but because people like to do data entry with CAPSLOCK on, I feel the need to convert it to Proper Case. [More]
Tags: , ,
Categories: .NET | C# | Strings

Illegal attempt to associate a collection with two open sessions

by Matt 2. September 2011 15:00
Some development I was working on threw an exception moments ago that I had never seen before: Illegal attempt to associate a collection with two open sessions. [More]
Tags: ,
Categories: .NET | ASP.NET | C# | NHibernate

Obout Grid Control

by Matt 7. June 2011 15:20
I’ve been using Obout Grid for a project and I must say it’s a really great control. One issue I encountered though was when I required the ability to have columns auto generated yet still set certain properties on columns should they be included in the grid. [More]
Categories: .NET | ASP.NET | C# | Obout Controls

CRM 4.0 opportunityclose Object

by Matt 5. February 2011 13:30
Programmatically closing an Opportunity object is pretty easy in CRM 4.0, although it took me some time to figure out how to do it correctly. [More]
Tags: , , ,
Categories: .NET | C# | CRM

CRM Error 0x8004416c - PluginAssemblyMustHavePublicKeyToken

by Matt 21. January 2011 17:43
So you've created added a brand new Project to your Dynamics CRM Plugin Solution. You write your code, compile it, and use the plugin registration tool to register the assembly and create your desired steps. [More]
Categories: .NET | C# | CRM

Reflecting on Reflection

by Matt 13. August 2010 16:24
It’s been a while since I’ve had to use reflection for anything, but it’s a very useful concept to understand as it can save you many lines of code and provide a smart solution when it is applicable. After playing around with it for a little while, I finally did solve my reflection problem; Apparently it works best when you stand in front of the mirror. [More]
Categories: .NET | C#

Retrieve Dynamic Entities By Property in CRM 4.0

by Matt 30. July 2010 16:14
The building up of a QueryExpression in CRM 4.0 SDK is a bit different than it was in 3.0 because of the introduction of generics to .NET, and is less dependant on arrays than it was in the past. Our PluginHelper project had a method that allowed the user to retrieve a Dynamic Entity based on the primary key, but I needed a way to retrieve Dynamic Entities based on other properties. [More]
Categories: .NET | C# | CRM

0x80040265 The given key was not present in the dictionary

by Matt 30. July 2010 15:11
I'm writing a CRM 4.0 plugin and have encountered this error. A bit of debugging helped me see what was going on. [More]
Tags: ,
Categories: CRM | C#

Making a Custom Activity Work in Your Project

by Matt 12. May 2010 10:39
In the past I have followed an amendment of these instructions in order to get a custom activity to work in a CRM workflow project. [More]
Tags:
Categories: C# | CRM

Deactivating Records Of Custom Entity in CRM

by Matt 5. May 2010 14:50
I just spun my wheels a bit too much trying to solve a problem that wasn't really a problem at all. [More]
Tags:
Categories: C# | CRM