Skip to main content

CRM 2011 - FileNotFoundException when calling Organizationservice

·123 words·1 min
Markus Konrad
Author
Markus Konrad
Blogger, Tekkie, Consultant, Developer

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:

  • Install Windows Identity Foundation on a supported System (Not the XP-System). In the example i have used a Windows 7 System.

  • Navigate to C:\Program Files\Reference Assemblies\Microsoft\Windows Identity Foundation\v3.5

  • Copy the “Microsoft.IdentityModel.dll” to your local XP-System

  • Find the gacutil.exe

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