Azure / azure-functions-signalrservice-extension

Azure Functions bindings for SignalR Service. Project moved to https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/signalr/Microsoft.Azure.WebJobs.Extensions.SignalRService .
MIT License
97 stars 48 forks source link

negotiate error after trying to update nuget packages #118

Open billbridges6 opened 4 years ago

billbridges6 commented 4 years ago

Hi, I'm getting a strange error in the negotiate function after trying to change the packages in the sample (simple chat) application. (Removed the project reference - and used the nuget package)

Updating : Microsoft.Net.Sdk.Functions to any version starting with 3..

and the signalrservice extension to version 1.10

I have tried adding System.IdentityModel.Tokens.Jwt ( many different versions of the nuget package )

I get : System.Private.CoreLib: Exception while executing function: negotiate. Microsoft.Azure.WebJobs.Host: Exception binding parameter 'connectionInfo'. Microsoft.Azure.WebJobs.Extensions.SignalRService: Could not load file or assembly 'System.IdentityModel.Tokens.Jwt, Version=5.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified. System.Private.CoreLib: Could not load the specified file.

billbridges6 commented 4 years ago

Should have said that I tried both the nuget package and also the project (as a referenced project ) with same result.

JialinXin commented 4 years ago

@billbridges6, it seems after Microsoft.Net.Sdk.Functions 3.* , some packages have break changes, you need to install Microsoft.Azure.WebJobs.Extensions.Http 3.* as well so that HttpTriggerAttribute can be resolved.

And about System.IdentityModel.Tokens.Jwt, you don't have to install yourself cause our dependency Microsoft.Azure.SignalR already has it. Sorry for the late response and let us know if you can work.