CRM Service Exception: Could not load file or assembly ‘Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies

I received the below error from a CRM WCF service that I created.  After some investigating, I found out that I received this error because I don’t have Windows Identify Foundation Pack installed on my developer PC. After installing Windows Identity Foundation, the service ran as expected. Be sure to install 6.0 if you’re running Vista…

22

Retrieving QueryString paramaters in a CRM Plug-In

Retrieving QueryString parameters inside of a CRM plug-in was easier than I thought, but with just one caveat.  After you register your parameter with your entity’s form view, you can then retrieve those parameters using the HttpContext class. Just a reference to System.Web to your plug-in assembly and then call it just like you would in any…


CRM 2011 SDK – System.InvalidCastException: Unable to cast object of type ‘Microsoft.Xrm.Sdk.Entity’ to type…

This is the same issue as the one mentioned in my blog from a few days ago (Error while using the Create Method – System.ArgumentNullException: Value cannot be null)…but this time I got an InvalidCastException while trying to cast an entity instance to a proxy generated early-bound type.  Same resolution, ensure that you call EnableProxyTypes before…

1

Creating a .NET WCF 4.0 JSON Service

I had a lot of trouble getting configuring a .NET 4.0 WCF service which could be called from an HTML page using JQUERY.  The issue was pretty much all with configuring the service and so I thought I would share the web.config that I finally got that allowed the service to work properly. First, ensure…

2

CRM 2011 SDK – Error while using the Create Method – System.ArgumentNullException: Value cannot be null

If you’re using the CRM 2011 SDK with a generated proxy, you may encounter an ArgumentNullException when trying to use the Create method on your service instance. To get around this issue, you must enable proxy types on the service proxy instance as follows:    internal static Guid CreateEntity(Entity entity){    if (entity == null)        throw…

3