11

I am using Azure Functions Core Tools from a cloned repository. When I try to run npm run watch this error occurs:
Value cannot be null. (Parameter 'provider') Error in Terminal

I've installed Azure Functions Core Tools from this https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v3%2Clinux%2Ccsharp%2Cportal%2Cbash%2Ckeda and was logged in on azure using azure-cli. I'm currently using Ubuntu 20.04.3 LTS.

3
  • 1
    Did you see this github issue? github.com/Azure/azure-functions-core-tools/issues/2232 Also it might be advisable that you install the core tools explicitly to resolve this issue learn.microsoft.com/en-us/azure/azure-functions/… Commented Dec 2, 2021 at 11:19
  • 1
    @misha130 Thank you. It has some conflicts with extensionBundle included in host.json file of the application. Still wondering why it won't work on my end while some of my team setups were not having the conflict issues. I just did installed it explicitly like you said and it did work. The only problem is that there will be different project structure now since installing explicitly provide the bin folder and extensions.csproj and extensionBundle code should be removed. I will still investigate further why the original setup does not work on my end. other than that, thank you very much. Commented Dec 6, 2021 at 5:32
  • I'll add an answer in case other people encounter this Commented Dec 6, 2021 at 10:24

6 Answers 6

5

There are situations in which it is best to install the Azure Function Core Tools explicitly to avoid any conflict or versioning problems:

https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-register#explicitly-install-extensions

Further discussion of this issue can be seen in:

https://github.com/Azure/azure-functions-core-tools/issues/2232

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, @misha130 - It worked for me as it was a version issue.
1

Had the same error message. My access was blocked via the azure firewall (vnet, subnets) and therefore, the local debugging was blocked (my IP was not added to the related storage accounts). After I added my IP to allowed list everything worked.

Comments

1

Encountered the same issue - the solution was to uninstall Azure Function Core Tools (Via "Add Or Remove Programs"), and then install them again

https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local?tabs=v4%2Cwindows%2Cts%2Cportal%2Cbash#v2

2 Comments

While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review
Reinstalling solved my issue too. Thanks!
0

Also had the same problem, and it seems like in my case the reason was low and unstable internet connectivity, I was trying to work from a hotel with bad internet connection. The reason I think so is that when I came back home and tried to reproduce the error, everything started working without any code updates.

Comments

0

I had the same error. If you are converting a function to net8.0, make sure you have these three lines in your settings:

"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"FUNCTIONS_EXTENSION_VERSION": "~4",
"FUNCTIONS_INPROC_NET8_ENABLED": "1"

That fixed it for me.

Comments

0

I had the same issue with the following error message.

Error configuring services in an external startup class.
Error configuring services in an external startup class. Microsoft.Azure.WebJobs.Extensions.EventGrid: Could not load file or assembly 'System.Net.Http, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
A host error has occurred during startup operation '2c501caa-5ef3-4ff6-a0ce-017f72d2d403'
Microsoft.Azure.WebJobs.Script: Error configuring services in an external startup class. Microsoft.Azure.WebJobs.Extensions.EventGrid: Could not load file or assembly 'System.Net.Http, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
Value cannot be null. (Parameter 'provider')

Changing the extension bundle version from [4.*, 5.0.0) to [3.*, 4.0.0) in host.json file worked for me.

host.json

  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[3.*, 4.0.0)"
  },

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.