I am tying to create azure function app( java). But while running I got this error
"Value cannot be null. (Parameter 'provider')"
using windows system.
Tried methods
func start
func extensions install
func extensions install --package Microsoft.Azure.WebJobs.Extensions.Storage --version 3.0.3
I think for non-.net languages need to install Microsoft.Azure.Functions.ExtensionBundle
manually. Where we can install this ExtensionBundle manually?
I think if we don't have admin rights to the system then it will happen I think so.
I think for non-.net languages need to install Microsoft.Azure.Functions.ExtensionBundle manually. Please Help me on How, where we can install this ExtensionBundle manually.
According to documentation :
To install the version manually, you can refer to Install extensions .
If the error persists, as suggested by Jerry Liu , try deleting the bin
and obj
folders and run func extensions install --package Microsoft.Azure.WebJobs.Extensions.Storage --version 3.0.3
Updated answer:
To locate and delete bin
and obj
folders in Visual Studio/VS Code/IntelliJ IDEA refer to Runtime Errors in obje/Release folders of Azure Functions , I want to delete all bin and obj folders to force all projects to rebuild everything , and bin and obj folder are shown in solution explorer after build, but with disabled option 'show all files'
When you create a non-.NET Functions project from tooling or in the portal, extension bundles are already enabled in the app's host.json file. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-register
If you're using binding extensions (eg Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (eg builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
Reference: https://github.com/Azure/azure-webjobs-sdk/issues/2808
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.