TypeLoadException: Could not load type 'Microsoft.IdentityModel.Json.JsonConvert' from assembly 'Microsoft.IdentityModel.Tokens, Version=7.0.3.0
Was getting this error, trying to add authentication feature into my app. Due to the assembly issues, I had to use the following assembly versions to make it work.
1st attempt
<PackageReference Include="Microsoft.AspNetCore.
<PackageReference Include="Microsoft.AspNetCore.
<PackageReference Include="Swashbuckle.
<PackageReference Include="System.IdentityModel.
2nd attempt (more recent version of the assemblies)
<PackageReference Include="Microsoft.AspNetCore.
<PackageReference Include="Microsoft.AspNetCore.
<PackageReference Include="Swashbuckle.
<PackageReference Include="System.IdentityModel.
Comments