Add a reference to the System.IdentityModel.Tokens DLL
问题 How do I add a reference to the System.IdentityModel.Tokens dll? It does not seem to come up in the Nuget Package Manager. Do I need to download the DLL? I have .Net 4.5 installed. The following code will not compile without the reference: SessionSecurityToken sst = e.SessionToken; 回答1: It does exist on NuGet, and was last published 2013-02-08, so I don't understand why you couldn't find it. Try searching for System.IdentityModel.Tokens.ValidatingIssuerNameRegistry . The best way is to