Reputation: 21
I am getting the following error when trying to load the following namespace
Microsoft.IdentityModel.Clients.ActiveDirectory
Error - The type or namespace IdentityModel does not exist in the namespace Microsoft.
Running on .NET Framework 4.6.
Package for Microsoft.IdentityModel.Clients.ActiveDirectory
v3.19.2
Upvotes: 2
Views: 823
Reputation: 1389
Try to install the Microsoft.Identity.Client
package version 4.47.2
in Visual studio 2019 using the nuget package manager under tools shown below and Microsoft.IdentityModel.Clients.ActiveDirectory
is deprecated:
Install the package and check in the console output whether it is installed successfully or not as shown below:
Now, we can use that package in the code.
Upvotes: 1