Microsoft.IdentityModel dll 在哪里
我已安装 Windows Identity Foundation,但找不到 Microsoft.IdentityModel dll。根据 Azure 动手实验室,它应该只是在 VS2010 中的“添加引用”中。然而它不在那里。
我还查看了 c:\Program Files(x86)\Windows Identity Foundation*,但它不在那里(或 64 位程序文件文件夹)。
帮助!
I have installed the Windows Identity Foundation but can't find the Microsoft.IdentityModel dll. According to the Azure Hands-on-Labs it should just be in Add Reference in VS2010. However it's not there.
I also looked in c:\Program Files(x86)\Windows Identity Foundation* and it's not in there (or the 64 bit program files folder).
Help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(10)
NuGet Windows Identity Foundation 怎么样。只需将其添加到您的项目中即可开始!它是 MS 拥有的 NuGet 之一,因此应进行相应维护。
编辑:在 Windows 8 中,通过在控制面板 > 中打开 Windows 功能来安装(启用)Windows Identity Foundation。所有控制面板项目 >程序和功能>打开或关闭 Windows 功能该功能是Windows Identity Foundation 3.5。上面答案中链接的安装程序不适用于 Windows 8
How about a NuGet Windows Identity Foundation. Just add it you you project and away you go! Its one of the MS owned NuGets so should be maintained accordingly.
EDIT: In Windows 8 Windows Identity Foundation is installed (enabled) by turning a windows feature on in Control Panel > All Control Panel Items > Programs and Features > Turn Windows feature on or off the feature is Windows Identity Foundation 3.5. Installers linked in the answer above will not work on Windows 8
您是否安装了 Windows Identity Foundation 及其配套WIF SDK?
Have you installed Windows Identity Foundation and the companion WIF SDK?
如果您已安装 WIF SDK,请尝试:
If you've installed the WIF SDK, try :
对于 Windows 10:
右键单击任务栏 Windows 徽标,选择“程序和功能”。
单击“打开或关闭 Windows 功能”
在出现的对话框中,向下滚动或调整窗口大小,然后选中“Windows Identity Foundation 3.5”旁边的框
单击“确定”。
这将激活所需的 DLL。显然,Windows 10 在 Windows 安装中保留了所有这些功能,以便它可以根据需要激活和停用它们。
For Windows 10:
Right-click the taskbar Windows logo, select 'Programs and Features'.
Click 'Turn Windows Features on or off'
In the dialog box that appears, scroll down or resize the window and check the box next to 'Windows Identity Foundation 3.5'
Click OK.
This activates the required DLLs. Apparently Windows 10 keeps all of those features in the windows installation so that it can activate and deactivate them on demand.
我遇到了这个问题,但通过引用 DLL 解决了它
“C:\Program Files\Reference Assemblies\Microsoft\Windows Identity Foundation\v3.5\Microsoft.IdentityModel.dll”
转到引用属性并将 DLL 的“复制本地”设置为 True。该 DLL 现在将包含在 azure 包中。
I had this problem, but fixed it by referencing the DLL from
"C:\Program Files\Reference Assemblies\Microsoft\Windows Identity Foundation\v3.5\Microsoft.IdentityModel.dll"
Go to reference properties and set Copy Local to True for the DLL. The DLL will now be included in the azure package.
在 Windows 8.1 64 位中,查看 C:\Windows\ADFS 下
In Windows 8.1 64bit, look under C:\Windows\ADFS
在 Windows 8 及更高版本中,有一种方法可以从命令行启用该功能,而无需通过运行以下命令显式下载/安装任何内容:
然后通过在 Windows 磁盘的根目录中运行以下命令来查找该文件:
In Windows 8 and up there's a way to enable the feature from the command line without having to download/install anything explicitly by running the following:
And then find the file by running the following at the root of your Windows disk:
我有类似的问题。我收到异常“成员‘Microsoft.IdentityModel.Claims.ClaimsPrincipal、Microsoft.IdentityModel、版本 = 3.5.0.0、文化 = 中性、PublicKeyToken = 31bf3856ad364e35’的类型未解析。”。
我尝试从 Visual Studio 运行 ASP.NET 应用程序,它是对 Microsoft.IdentityModel.dll 本地副本的引用。
我不想安装 SDK,必须将库复制到目录“C:\Program Files\Common Files\Microsoft Shared\DevServer\10.0”并重新启动 Visual Studio。
I had a similar problem. I got an exception "Type is not resolved for member 'Microsoft.IdentityModel.Claims.ClaimsPrincipal, Microsoft.IdentityModel, Version = 3.5.0.0, Culture = neutral, PublicKeyToken = 31bf3856ad364e35'.".
I tried to run the ASP.NET application from Visual Studio, which was a reference to a local copy of Microsoft.IdentityModel.dll.
I did not want to install the SDK and I had to copy the library to the directory "C: \ Program Files \ Common Files \ Microsoft Shared \ DevServer \ 10.0" and restart Visual Studio.
检查 3.5 之后更改的命名空间映射,请参阅下面的 URL 了解详细信息。
http://msdn.microsoft.com/en-us/library/jj157091.aspx
Check namespace mapping changed after 3.5 see below URL for details.
http://msdn.microsoft.com/en-us/library/jj157091.aspx
安装以下两个链接
Windows Identity Foundation
注意:(对于 Vista 和 Windows Server 2008>>>Windows6.0 和
对于 Windows 7 和 Windows Server 2008 R2,>>> Windows6.1。 )
Windows Identity Foundation SDK
注意:对于 Visual Studio 2008 和 .NET 3.5,下载 3.5 版本;对于 Visual Studio 2010 和 .NET 4.0,下载 4.0 版本。
只有这样,您才能获得名为 Microsoft.IdentityModel 的程序集
Install Both of the below links
Windows Identity Foundation
Note: (For Vista and Windows Server 2008 >>> Windows6.0 and
For Windows 7 and Windows Server 2008 R2, >>> Windows6.1. )
Windows Identity Foundation SDK
Note: Download the 3.5 version for Visual Studio 2008 and .NET 3.5, the 4.0 version for Visual Studio 2010 and .NET 4.0.
Then Only, You will able to get the assembly called Microsoft.IdentityModel