I have installed the Windows Identity Foundation but can\'t find the Microsoft.IdentityModel dll. According to the Azure Hands-on-Labs it should just be in Add Reference in
I had this problem, but fixed it by referencing the DLL from "C:\Program Files\Reference Assemblies\Microsoft\Windows Identity Foundation\v3.5\Microsoft.IdentityModel.dll"
Go to reference properties and set Copy Local to True for the DLL. The DLL will now be included in the azure package.
Install Both of the below links
Windows Identity Foundation
Note: (For Vista and Windows Server 2008 >>> Windows6.0 and For Windows 7 and Windows Server 2008 R2, >>> Windows6.1. )
Windows Identity Foundation SDK
Note: Download the 3.5 version for Visual Studio 2008 and .NET 3.5, the 4.0 version for Visual Studio 2010 and .NET 4.0.
Then Only, You will able to get the assembly called Microsoft.IdentityModel
For Windows 10:
Right-click the taskbar Windows logo, select 'Programs and Features'.
Click 'Turn Windows Features on or off'
In the dialog box that appears, scroll down or resize the window and check the box next to 'Windows Identity Foundation 3.5'
Click OK.
This activates the required DLLs. Apparently Windows 10 keeps all of those features in the windows installation so that it can activate and deactivate them on demand.
Have you installed Windows Identity Foundation and the companion WIF SDK?
I had a similar problem. I got an exception "Type is not resolved for member 'Microsoft.IdentityModel.Claims.ClaimsPrincipal, Microsoft.IdentityModel, Version = 3.5.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35'.".
I tried to run the ASP.NET application from Visual Studio, which was a reference to a local copy of Microsoft.IdentityModel.dll.
I did not want to install the SDK and I had to copy the library to the directory "C: \ Program Files \ Common Files \ Microsoft Shared \ DevServer \ 10.0" and restart Visual Studio.
If you've installed the WIF SDK, try :
C:\Program Files\Reference Assemblies\Microsoft\Windows Identity Foundation\v3.5\
Microsoft.IdentityModel.dll