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.

[BUG] Azure Servicebus 4.1.1 Compile time warnings due to conflicting System.IdentityModel.Tokens.Jwt

See original GitHub issue

Describe the bug I am using the Microsoft.Azure.ServiceBus library (v4.1.1) via webjobs/functions triggers extension package. My application references the System.IdentityModel.Tokens.Jwt package version 6.7.1, but Microsoft.Azure.ServiceBus only supports outdated version range >=5.4.0 && < 6.0.0

Expected behavior Microsoft.Azure.ServiceBus supports current version of IdentityModel.Jwt package

Actual behavior (include Exception or Stack Trace) Forced to manually install System.IdentityModel.Tokens.Jwt into top level functions project to prevent package downgrade. Get compiler warnings due to package version mismatch

image

To Reproduce Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)

  1. Create library using System.IdentityModel.Tokens.Jwt 6.7.1
  2. Create azure functions app with service bus trigger
  3. Reference library from (1) with functions app
  4. Compile warnings

Environment:

  • Microsoft.Azure.WebJobs.Extensions.ServiceBus 4.1.2
  • Microsoft.Azure.ServiceBus 4.1.1
  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects):

.NET Core SDK (reflecting any global.json): Version: 3.1.301 Commit: 7feb845744

Runtime Environment: OS Name: Windows OS Version: 10.0.19041 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\3.1.301\

  • IDE and version : VS 16.8 preview 3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
axisccommented, Sep 22, 2020

@ssa3512 that would be with the Webjobs team, @jsquire - can you help route it?

0reactions
ssa3512commented, Mar 12, 2021

It looks like this was resolved as of Microsoft.Azure.WebJobs.Extensions.ServiceBus v4.2.0 released the day after I opened this issue…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not load file or assembly 'System.IdentityModel. ...
IdentityModel.Tokens.Jwt' after deploying on Azure". But I met another issue: System.Private.CoreLib: Exception while executing function: ...
Read more >
Authenticating Azure AD Function fails with "Could not load ...
Hi Siegried, It looks like you are facing an issue with loading the System.IdentityModel.Tokens.Jwt assembly in your compiled C# Azure Function.
Read more >
Microsoft.Azure.ServiceBus 4.1.1
This is the next generation Azure Service Bus .NET Standard client library that focuses on queues & topics. For more information about ...
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