Check if you are using Framework 4.7.1 or .net core and validate Namespace System.IdentityModel.Tokens Namespace or Microsoft.IdentityModel.Tokens