Could not load file or assembly ‘Microsoft.IdentityModel’

by gusse on October 11, 2011

I ran into this error here today Could not load file or assembly ‘Microsoft.IdentityModel’ working with the Microsoft CRM 2011 SDK.

The reason for receiving this error was because I did not have the Windows Identify Foundation Pack installed on my test computer where I tried to deploy the solution. So to fix this problem just download the msu file  (windows update file) and run it.

microsoft.xrm.sdk.dll’. —> System.IO.FileNotFoundException: 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.

at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at Siteshop.Core.PlugInManager.LoadPlugIns(Assembly assembly, FunctionManager functionManager, ValueConstraintManager valueConstraintManager, DataSourceTypeManager dataSourceTypeManager)

Windows® Identity Foundation (WIF) is a framework for building identity-aware applications. Used for  Claim Based authentication in MS CRM 2011

Leave a Comment

Previous post: