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

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?

About this issue

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

Most upvoted comments

The final packages will be out Soon. Next week?

Please use 4.0

@Tratcher Is there any possibility of delivering sooner? I faced this problem twice in current quarter both the time, I’ve been using twilio 5.5.12 nuget package which has dependency on System.IdentityModel.Tokens.Jwt 5.1.2. BUT Microsoft.Owin.Security.OpenIdConnect 3.1.0 nuget isn’t compatible with System.IdentityModel.Tokens.Jwt 5.1.2.

And by this, it doesn’t allow to downgrade as well!