Where is the Microsoft.IdentityModel dll

2019-02-02 02:09发布

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!

10条回答
相关推荐>>
2楼-- · 2019-02-02 02:22

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:

dism /online /Enable-Feature:Windows-Identity-Foundation

And then find the file by running the following at the root of your Windows disk:

dir /s /b Microsoft.IdentityModel.dll
查看更多
戒情不戒烟
3楼-- · 2019-02-02 02:23

Check namespace mapping changed after 3.5 see below URL for details. http://msdn.microsoft.com/en-us/library/jj157091.aspx

查看更多
爱情/是我丢掉的垃圾
4楼-- · 2019-02-02 02:26

Have you installed Windows Identity Foundation and the companion WIF SDK?

查看更多
等我变得足够好
5楼-- · 2019-02-02 02:27

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.

查看更多
霸刀☆藐视天下
6楼-- · 2019-02-02 02:27

In Windows 8.1 64bit, look under C:\Windows\ADFS

查看更多
我欲成王,谁敢阻挡
7楼-- · 2019-02-02 02:29

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.

查看更多
登录 后发表回答