If you plan on writing anything that uses the CRM 2011 SDK, you may at some point run into the following error message:

The application terminated with an error.
Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

 

Solution:

You need to install the Windows Identity Foundation which contains a referenced assembly then add that assembly as a reference to your project.

Tagged with:  

8 Responses to CRM 2011 SDK Development and Microsoft.IdentityModel Assembly

  1. Jason says:

    I've found that installing the WIF is enough. Once installed, I don't need to add the assembly as a reference

  2. Mitch Milam says:

    Jason, I think you are correct.

  3. KAshif says:

    Thanks its working!

  4. pearse says:

    Mitch
    I tried installing it ,but couldn't even download the file .I have Windows XP and I tried the Windows6.1-KB974405-x86.msu . wrong pointer to the link

  5. Mitch Milam says:

    pearse, you need to look at the requirements at the bottom of that page. Windows XP is not supported. The minimum is Vista.

  6. Anthony Brown says:

    One option is to copy the Microsoft.IdentityModel DLL from a Win 7 or Win 2008 install and install into the GAC on your XP machine. This fixed it for me.

  7. [...] is actually a repost from this article, but it seems a lot of people are running into the error so I thought I'd repost [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>