Azure / Azure/azure-functions-core-tools

Value cannot be null. (Parameter 'provider')

Open
#2,350 17 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
5d 4h
Merged PRs (30d)
15

Description

Seeing that the other issues that had this error did not quite fill the bill, I wanted to add my two cents. I built a project that was similar to the example provided and all was well, but when I added a project that contained a reference to Microsoft.EntityFrameworkCore version 5.0.0, also tried 5.0.1, I received the error message below. What is in the EF Core 5 that is causing this problem?

[2020-12-15T03:56:19.269Z] Reading host configuration file 'C:\working\Repos\ProDriver.Api\Functions\bin\output\host.json'
[2020-12-15T03:56:19.273Z] Host configuration file read:
[2020-12-15T03:56:19.274Z] {
[2020-12-15T03:56:19.274Z] "version": "2.0",
[2020-12-15T03:56:19.275Z] "functionTimeout": "00:35:00"
[2020-12-15T03:56:19.276Z] }
[2020-12-15T03:56:19.285Z] A host error has occurred during startup operation '6c8e42bb-381c-4450-a7c2-976fe155a261'.
[2020-12-15T03:56:19.287Z] Functions: Method not found: 'Microsoft.Extensions.DependencyInjection.IServiceCollection Microsoft.Azure.WebJobs.IWebJobsBuilder.get_Services()'.
Value cannot be null. (Parameter 'provider')
[2020-12-15T03:56:19.344Z] Initialization cancellation requested by runtime.
[2020-12-15T03:56:19.347Z] Stopping host...
[2020-12-15T03:56:19.348Z] Host shutdown completed.

Contributor guide

Open the contributing guide

Research direction

Reproduce the Azure Functions host startup with Microsoft.EntityFrameworkCore 5.0.0 and 5.0.1, using the provided host.json and log output as the starting point. Investigate the reported IWebJobsBuilder.get_Services method-not-found error and the resulting null provider; done means the project starts successfully with the affected dependency versions or the compatibility requirement is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
cloud, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.