开发者

Where is Microsoft.Sharepoint.IdentityModel.dll

I am trying to use the SPFederationAuthenticationModule class in my SharePoint Foundation 2010 project. \I cannot find Microsoft.Sharepoi开发者_如何学Pythonnt.IdentityModel.dll file. There is not one in c:\windows\assembly. Help me!


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.


  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.


for SharePoint 2013 C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\v4.0_15.0.0.0__71e9bce111e9429c


For SharePoint 2019, the location is:

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel


When you go to add the reference, you'll have to browse to C:\Windows\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\


C:\Windows\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\14.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.IdentityModel.dll


When I searched for Microsoft.SharePoint.IdentityModel.dll on the server, it didn't find it, but when you add it as a reference and follow the path it works

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜