error "Azure.AzureNamedKeyCredential" in azure portal

%3CLINGO-SUB%20id%3D%22lingo-sub-2527241%22%20slang%3D%22en-US%22%3Eerror%20%22Azure.AzureNamedKeyCredential%22%20in%20azure%20portal%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2527241%22%20slang%3D%22en-US%22%3E%3CP%3EHello.%20I'm%20facing%20this%20peculiar%20problem%20using%20azure%20portal%20functions%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFirst%2C%20I%20added%20a%20http%20trigger%20function.%20Sending%20message%20to%20queue%20success%2C%20no%20problem%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20I%20added%20service%20bus%20trigger%20function.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20%2C%20when%20sending%20message%20to%20queue%2C%20I%20get%20this%20error%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20color%3D%22%23FF0000%22%3E%5BError%5D%20Executed%20'Functions.addticket_queue'%20(Failed%2C%20Id%3D9b041137-c726-4751-8435-f8dd9c279eee%2C%20Duration%3D99ms)Could%20not%20load%20type%20'Azure.AzureNamedKeyCredential'%20from%20assembly%20'Azure.Core%2C%20Version%3D1.0.2.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D92742159e12e44c8'.%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20confirm%20that%20this%20error%20occured%20when%20instantiating%20the%20client%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3Eclient%20%3D%20new%20ServiceBusClient(connectionString)%3B%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20remove%20the%20service%20bus%20trigger%2C%20it%20runs%20without%20problems.%3C%2FP%3E%3CP%3Eany%20help%20is%20greatly%20appreciated%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hello. I'm facing this peculiar problem using azure portal functions

 

First, I added a http trigger function. Sending message to queue success, no problem

 

Then I added service bus trigger function.

 

Then , when sending message to queue, I get this error

 

[Error] Executed 'Functions.addticket_queue' (Failed, Id=9b041137-c726-4751-8435-f8dd9c279eee, Duration=99ms)Could not load type 'Azure.AzureNamedKeyCredential' from assembly 'Azure.Core, Version=1.0.2.0, Culture=neutral, PublicKeyToken=92742159e12e44c8'.

 

I can confirm that this error occured when instantiating the client

 

client = new ServiceBusClient(connectionString);

 

If I remove the service bus trigger, it runs without problems.

any help is greatly appreciated

0 Replies