2011-04-07 27 views
8

其中是我想在我的SharePoint Foundation 2010項目中使用SPFederationAuthenticationModule類。 \我無法找到Microsoft.Sharepoint.IdentityModel.dll文件。在中沒有一個是c:\ windows \ assembly。幫我!Microsoft.Sharepoint.IdentityModel.dll

回答

7
  1. start命令提示符

  2. 寫 「CD:\ WINDOWS \裝配\ GAC_MSIL \ Microsoft.SharePoint.IdentityModel \ 14.0.0.0__71e9bce111e9429c \」

  3. 寫 「複製Microsoft.SharePoint.IdentityModel.dll C:\」

  4. 現在你可以自由地訪問該DLL(例如複製到TFS,開放與反射器或任何其他操作)

另一種選擇是寫「SUBST我中:%windir%\組裝\ GAC_MSIL」在命令提示符,這樣你可以瀏覽GAC_MSIL(其中微軟.SharePoint.IdentityModel位於)通過Windows資源管理器。

0

當你去添加引用,你必須瀏覽到C:\ WINDOWS \裝配\ GAC_MSIL \ Microsoft.SharePoint.IdentityModel \

0

C:\ WINDOWS \裝配\ GAC_MSIL \ Microsoft.SharePoint程序.IdentityModel \ 14.0.0.0__71e9bce111e9429c \ Microsoft.SharePoint.IdentityModel.dll

0

當我在服務器上搜索Microsoft.SharePoint.IdentityModel.dll時,它沒有找到它,但是當您將它添加爲參考並且遵循其工作路徑

17

這些答案是正確的,如果你使用SharePoint 2010的

如果你需要找到的DLL爲SharePoint 2013,您將需要從該位置引用它: C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\v4.0_15.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.IdentityModel.dll

注意在.NET 4.0下,GAC的位置發生了變化。

+0

那是什麼我結束了做;;正確回答SP 2013 :) – anpatel 2013-06-14 19:49:02

+0

另請注意,引用該版本時版本發生更改。 14.0.0.0-> 15.0.0.0 – 2013-08-12 14:50:59

+0

這是正確的答案。感謝問題解決.. – tharindlaksh 2014-02-26 04:54:34

2

爲SharePoint 2013 C:\ WINDOWS \ Microsoft.NET \裝配\ GAC_MSIL \ Microsoft.SharePoint.IdentityModel \ v4.0_15.0.0.0__71e9bce111e9429c