question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not load type 'System.IdentityModel.Tokens.TokenValidationParameters'

See original GitHub issue

I upgraded nuget packages:

  • Microsoft.IdentityModel.Tokens, Version=5.1.4.0
  • Microsoft.Owin.Security.OpenIdConnect, Version=3.1.0.0

and got an error:

Could not load type 'System.IdentityModel.Tokens.TokenValidationParameters' from assembly 'System.IdentityModel.Tokens.Jwt, Version=5.1.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

   at Microsoft.Owin.Security.OpenIdConnect.OpenIdConnectAuthenticationOptions..ctor(String authenticationType)
   at Microsoft.Owin.Security.OpenIdConnect.OpenIdConnectAuthenticationOptions..ctor()

Is OWIN compatible with latest IdentityModel?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:57 (20 by maintainers)

github_iconTop GitHub Comments

3reactions
Tratchercommented, Dec 28, 2017

The final packages will be out Soon. Next week?

2reactions
Tratchercommented, Oct 3, 2017

Please use 4.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not load type 'System.IdentityModel.Tokens. ...
I m getting this error when on IDS bearer Token auth UseIdentityServerBearerTokenAuthentication . app framework 4.6 Identity Model - 3.8 ...
Read more >
Could not load type 'System.IdentityModel.Tokens. ...
I've resolved this issue by downgrading the package System.IdentityModel.Tokens.Jwt to 4.0. And there is an issue on GitHub ...
Read more >
Could not load type 'System.IdentityModel.Tokens. ...
Active Roles is failing to authenticate when using MSOnline within a script and trying to connect and the following error may be experienced ......
Read more >
MSOnline Could not load type 'System.IdentityModel. ...
When the Connect-MsolService cmdlet executes to authenticate with Office 365 I'm getting the following error. Could not load type 'System.
Read more >
Resolving the "Could Not Load File or Assembly System. ...
A description on how I resolved the "Could not load file or assembly System.IdentityModel.Tokens.Jwt" in an Azure Functions application.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found