Could not load file or assembly ‘Microsoft.IdentityModel, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies error in Windows 8


We were getting the above error while running one of our applications in Windows 8 machine. While trying to install it using the Installer we ran into the following error

“Windows Update Standalone Installer.  Installer encountered an error 0x80096002. The certificate for the signer of the message is invalid or not found.”

Finally after some search came to know that WIF comes as a feature in Windows 8 which we can turn on or off.

To turn it on

Go to Search – look for Windows feature in Settings

Check the Windows Identity Foundation 3.5 option.

Restart the machine and we are done.