2012-03-23 95 views
0

我在讀this answer並試圖複製那裏使用的方法,但VS2010和編譯器拒絕確認SecurityAlgorithms作爲Microsoft.IdentityModel.Tokens的一部分存在,即使MSDN says it does。我得到的錯誤:「名稱空間'Microsoft.IdentityModel.Tokens'中沒有類型或名稱空間名'SecurityAlgorithms'(您是否缺少程序集引用?」)WIF SecurityAlgorithms類去了哪裏?

我從here(Windows6中安裝了WIF。 1-KB974405-x64.msu)和here(WindowsIdentityFoundation-SDK-4.0.msi)的WIF SDK。然後我將 對Microsoft.IdentityModel的引用添加到我的項目中。

有什麼我錯過了?

回答

0

我的錯誤,它實際上是在System.IdentityModel.Tokens,而不是Microsoft.IdentityModel.Tokens。