Monday, November 29, 2010

CRM 2011 - FileNotFoundException when calling Organizationservice

If you are developing on a XP-System and you are using the Organizationservice for communication with CRM2011 (Online/OnPremise), you will receive a System.IO.FileNotFoundException. The missing dll is "Microsoft.IdentityModel". The problem is, you can not install this (WIF) on Windows XP Operating Systems.

Workaround:
  • Navigate to C:\Program Files\Reference Assemblies\Microsoft\Windows Identity Foundation\v3.5
  • Copy the "Microsoft.IdentityModel.dll" to your local XP-System
  • Install the Microsoft.IdentityModel.dll to the global assembly cache. (gacutil.exe /i Microsoft.IdentityModel.dll)

Now you can use the Organizationservice from XP-Systems.

If you have problems after installing, you can remove the assembly.
  • gacutil.exe /u Microsoft.IdentityModel

cheers

No comments:

Post a Comment