Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is Microsoft.Sharepoint.IdentityModel.dll

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!

like image 262
NieAR Avatar asked Apr 07 '11 12:04

NieAR


People also ask

Where is Microsoft IdentityModel DLL?

IdentityModel assembly is located under the %Program Files%\Reference Assemblies\ Microsoft\Windows Identity Foundation\v3. 5 folder.

How do I add a Microsoft SharePoint DLL reference?

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 .


2 Answers

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.

like image 111
CBono Avatar answered Sep 18 '22 13:09

CBono


  1. start Command Prompt

  2. write "cd :\Windows\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\14.0.0.0__71e9bce111e9429c\"

  3. write "copy Microsoft.SharePoint.IdentityModel.dll c:\"

  4. 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.

like image 40
Peter Karpinski Avatar answered Sep 18 '22 13:09

Peter Karpinski