Reproduction steps:
- Create a Bot Application
- Build and run
- Connect using the Channel Emulator, it works
- Right click on the Bot Application project and Manage NuGet packages
- Update packages
- Build and run
- Connect using the Channel Emulator and send a message, it fails with 500 Internal Server Error
Further investigation surfaces the following:
Exception thrown: 'System.TypeLoadException' in mscorlib.dll ("Could not load type 'System.IdentityModel.Tokens.TokenValidationParameters' from assembly 'System.IdentityModel.Tokens.Jwt, Version=5.0.0.127, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.")