Azure WebJobs ServiceBus returns Exception: found 2 DNS claims in authorization context

后端 未结 7 1691
抹茶落季
抹茶落季 2020-12-30 21:31

I\'m trying to read a message from an Azure ServiceBus queue using an Azure WebJob but it\'s throwing and exception:

Unhandled Exception: System.InvalidOper         


        
7条回答
  •  暖寄归人
    2020-12-30 22:10

    The answer marked as solution, is not the solution, it is a botched job. The solution to use it in .Net Framework 4.6.1 is to add in the rutime block in App.config:

    
    

    Read this article Mitigation: X509CertificiateClaimSet.FindClaims Method

    Very IMPORTANT for now Azure WebApps / WebJob etc, doesn't support 4.6.1 I will note here when (said at jan 21, 2016).

    It means, that you can develop a web job application with 4.6.1, but when you push it to Azure, you can see exceptions like Job failed due to exit code -2146232576

提交回复
热议问题