I am trying to use the SPFederationAuthenticationModule class in my SharePoint Foundation 2010 project. \I cannot find Microsoft.Sharepoint.IdentityModel.dll file. There is not one in c:\windows\assembly. Help me!
IdentityModel assembly is located under the %Program Files%\Reference Assemblies\ Microsoft\Windows Identity Foundation\v3. 5 folder.
1 Answer. Show activity on this post. As you have SharePoint installed on the development machine (you must), hit Browse... on the Add reference dialog, and you can find the DLL from C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\ISAPI .
These answers are correct if you're using SharePoint 2010.
If you need to find the DLL for SharePoint 2013, you'll need to reference it from this location:
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\v4.0_15.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.IdentityModel.dll
Note that under .NET 4.0, the location of the GAC has changed.
start Command Prompt
write "cd :\Windows\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\14.0.0.0__71e9bce111e9429c\"
write "copy Microsoft.SharePoint.IdentityModel.dll c:\"
now you can access the dll freely (e.g. copy to TFS, open with reflector or any other action)
Another option is to write "subst i: %windir%\assembly\gac_msil" in Command Prompt, that way you can browse the GAC_MSIL (where Microsoft.SharePoint.IdentityModel is located) via Windows Explorer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With