azure-functions-core-tools: Value cannot be null. (Parameter 'provider')

Hi there, I was just using the HttpExample code and nothing was changed, after I clicked F5 according to the guide and the issue came up, even I used func start in the project folder the issue remained the same.

Azure Functions Core Tools (3.0.2912 Commit hash: bfcbbe48ed6fdacdf9b309261ecc8093df3b83f2)
Function Runtime Version: 3.0.14287.0
[9/19/2020 15:00:06] Building host: startup suppressed: 'False', configuration suppressed: 'False', startup operation id: '5f4c99d4-a810-4ca5-8ea9-2f98573cf816'
[9/19/2020 15:00:06] Reading host configuration file 'G:\projects\example-pj\host.json'
[9/19/2020 15:00:06] Host configuration file read:
[9/19/2020 15:00:06] {
[9/19/2020 15:00:06]   "version": "2.0",
[9/19/2020 15:00:06]   "logging": {
[9/19/2020 15:00:06]     "applicationInsights": {
[9/19/2020 15:00:06]       "samplingSettings": {
[9/19/2020 15:00:06]         "isEnabled": true,
[9/19/2020 15:00:06]         "excludedTypes": "Request"
[9/19/2020 15:00:06]       }
[9/19/2020 15:00:06]     }
[9/19/2020 15:00:06]   },
[9/19/2020 15:00:06]   "extensionBundle": {
[9/19/2020 15:00:06]     "id": "Microsoft.Azure.Functions.ExtensionBundle",
[9/19/2020 15:00:06]     "version": "[1.*, 2.0.0)"
[9/19/2020 15:00:06]   }
[9/19/2020 15:00:06] }
[9/19/2020 15:00:06] Loading functions metadata
[9/19/2020 15:00:06] FUNCTIONS_WORKER_RUNTIME set to python. Skipping WorkerConfig for language:java
[9/19/2020 15:00:06] FUNCTIONS_WORKER_RUNTIME set to python. Skipping WorkerConfig for language:node
[9/19/2020 15:00:06] FUNCTIONS_WORKER_RUNTIME set to python. Skipping WorkerConfig for language:powershell
[9/19/2020 15:00:06] Reading functions metadata
[9/19/2020 15:00:06] 2 functions found
[9/19/2020 15:00:06] 2 functions loaded
[9/19/2020 15:00:06] Looking for extension bundle Microsoft.Azure.Functions.ExtensionBundle at C:\Users\USERNAME\.azure-functions-core-tools\Functions\ExtensionBundles\Microsoft.Azure.Functions.ExtensionBundle
[9/19/2020 15:00:06] Fetching information on versions of extension bundle Microsoft.Azure.Functions.ExtensionBundle available on https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/index.json[9/19/2020 15:00:10] Downloading extension bundle from https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/1.3.2/Microsoft.Azure.Functions.ExtensionBundle.1.3.2_any-any.zip to C:\Users\USERNAME\AppData\Local\Temp\4f3275ce-db69-47b8-bb7b-a828041003c2\Microsoft.Azure.Functions.ExtensionBundle.1.3.2.zip
Hosting environment: Production
Content root path: G:\projects\example-pj
Now listening on: http://0.0.0.0:7071
Application started. Press Ctrl+C to shut down.
Value cannot be null. (Parameter 'provider')
Application is shutting down...
[9/19/2020 15:02:28] Stopping host...
[9/19/2020 15:02:28] Host shutdown completed.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 34 (10 by maintainers)

Most upvoted comments

Having this error today trying to run our Azure Functions locally (Windows, using Visual Studio and command line) Azure Functions Core Tools Core Tools Version: 3.0.3284 Commit hash: 98bc25e668274edd175a1647fe5a9bc4ffb6887d Function Runtime Version: 3.0.15371.0

[2021-02-18T19:48:13.508Z] A host error has occurred during startup operation 'a78d628b-b914-45a0-be72-69de17c3e83e'. [2021-02-18T19:48:13.512Z] Microsoft.Azure.WebJobs.ServiceBus: Method not found: 'Microsoft.Azure.WebJobs.IWebJobsExtensionBuilder Microsoft.Azure.WebJobs.WebJobsExtensionBuilderExtensions.ConfigureOptions(Microsoft.Azure.WebJobs.IWebJobsExtensionBuilder, System.Action3<Microsoft.Extensions.Configuration.IConfiguration,System.String,!!0>)'. Value cannot be null. (Parameter ‘provider’) ``

Installed the npm package to run on the command line using func host start, and got the same error. Rolled back the npm package to version 3.0.3233, and do NOT get the error; project runs successfully. Is this a problem with the current version (3.0.3284) or runtime?

Runs successfully with: Core Tools Version: 3.0.3233 Commit hash: d1772f733802122a326fa696dd4c086292ec0171 Function Runtime Version: 3.0.15193.0

Same issue for me :

Azure Functions Core Tools Core Tools Version: 3.0.3233 Commit hash: d1772f7 Function Runtime Version: 3.0.15193.0 Value cannot be null. (Parameter ‘provider’)

After i removed the extensionBundle section from host.json it started working for me.

image

Same issue for me :

Azure Functions Core Tools Core Tools Version: 3.0.3233 Commit hash: d1772f733802122a326fa696dd4c086292ec0171 Function Runtime Version: 3.0.15193.0

Value cannot be null. (Parameter ‘provider’)

I’m also experiencing this issue with the v3 Functions runtime, and Java worker runtime.

@anthonychu I don’t use extension bundles and don’t have .azure-functions-core-tools in my user folder.

Here’s the output:

> Executing task: func host start <

Azure Functions Core Tools (3.0.2912 Commit hash: bfcbbe48ed6fdacdf9b309261ecc8093df3b83f2)
Function Runtime Version: 3.0.14287.0
System.ArgumentNullException: Value cannot be null. (Parameter 'provider')
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)     
   at Azure.Functions.Cli.Actions.HostActions.StartHostAction.RunAsync() in D:\a\1\s\src\Azure.Functions.Cli\Actions\HostActions\StartHostAction.cs:line 267
   at Azure.Functions.Cli.ConsoleApp.RunAsync[T](String[] args, IContainer container) in D:\a\1\s\src\Azure.Functions.Cli\ConsoleApp.cs:line 66
Application is shutting down...
Starting worker process failed
System.TimeoutException: The operation has timed out.
Failed to start language worker process for runtime: (null). workerId:830a4245-94b4-451c-8b50-db3ba38c65eb

EDIT: This issue only occurs when I debug the function app through VSCode, but not when I manually trigger func host start

Having this error today trying to run our Azure Functions locally (Windows, using Visual Studio and command line) Azure Functions Core Tools Core Tools Version: 3.0.3284 Commit hash: 98bc25e668274edd175a1647fe5a9bc4ffb6887d Function Runtime Version: 3.0.15371.0 [2021-02-18T19:48:13.508Z] A host error has occurred during startup operation 'a78d628b-b914-45a0-be72-69de17c3e83e'. [2021-02-18T19:48:13.512Z] Microsoft.Azure.WebJobs.ServiceBus: Method not found: 'Microsoft.Azure.WebJobs.IWebJobsExtensionBuilder Microsoft.Azure.WebJobs.WebJobsExtensionBuilderExtensions.ConfigureOptions(Microsoft.Azure.WebJobs.IWebJobsExtensionBuilder, System.Action3<Microsoft.Extensions.Configuration.IConfiguration,System.String,!!0>)'. Value cannot be null. (Parameter ‘provider’) `` Installed the npm package to run on the command line using func host start, and got the same error. Rolled back the npm package to version 3.0.3233, and do NOT get the error; project runs successfully. Is this a problem with the current version (3.0.3284) or runtime? Runs successfully with: Core Tools Version: 3.0.3233 Commit hash: d1772f733802122a326fa696dd4c086292ec0171 Function Runtime Version: 3.0.15193.0

Same issue for me :

Azure Functions Core Tools Core Tools Version: 3.0.3233 Commit hash: d1772f7 Function Runtime Version: 3.0.15193.0 Value cannot be null. (Parameter ‘provider’)

After i removed the extensionBundle section from host.json it started working for me.

image

Work for me, have been deploy my app, hola! Thanks!

Any updates, I’m experiencing this upgrading from 3.1 to 5.0