Reputation: 29
Error :
The function runtime is unable to start. Microsoft.Azure.WebJobs.ServiceBus: Could not load type 'Microsoft.Azure.ServiceBus.Management.ManagementClient' from assembly 'Microsoft.Azure.ServiceBus, Version=3enter code here
.0.2.0, Culture=neutral
Upvotes: 2
Views: 3365
Reputation: 887
Do you have extension bundle configuration in host.json like the one below
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[1.*, 2.0.0)"
}
If yes, then changing the config to should resolve the issue. This would force the function to use a specific version of extension bundle that has service bus version 3.0.2 present.
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[1.0.0, 1.1.0)"
}
Note: If your function app is using C# pre-compiled functions then removing the bundles configuration is the right fix for you.
Upvotes: 2
Reputation: 222722
This issue was reported in Github,
Using NuGet -package Microsoft.AspNet.SignalR.ServiceBus3
with NuGet -package WindowsAzure.ServiceBus works.
Feel free to remove package Microsoft.AspNet.SignalR.ServiceBus once "ServiceBus3" is installed.
Upvotes: 0