Fixing error : The type ‘Microsoft.IdentityModel.Protocols.WSTrust.RequestSecurityTokenResponse’ is defined in an assembly that is not referenced.

I received this error while trying to compile “Quick Start” sample code provided in CRM 2011 SDK. After searching on Google i found out that i need to install Identity Foundation on my machine for this to work.
So i searched and found a download link for Identity Foundation .



But when i downloaded it and tried to install i got another error as shown below

“Installer encountered an error: 0x80096002

The certificate for the signer of the message is invalid or not found.”

I found out that these downloads are only for windows before windows 8 and i was using windows 8.So i had to find another way.

Later i found out that in order to install Identity Foundation in windows 8 you need to follow the following steps.


  1. Go to “programms and features” from control panel or search directly on start screen and click “settings”
  2. After this click on “Turn windows Features on or off” on the left side of screen. you ¬†will be presented with the following window.
  3. Select “Windows I dentity Foundation 3.5” from the list and click ok. let the windows restart after the feature is turned on.
  4. You can now run the sample code successfully.


Recommended Book

Posted by Sheraz Lodhi

Leave a Reply