I created a C# Azure Function in Visual Studio Code. When I run the function in Visual Studio Code, I get the following error:
[8/21/2020 1:27:34 AM] A host error has occurred during startup operation '803d7235-e81a-4768-a68d-15fcd93d8518'.
[8/21/2020 1:27:34 AM] System.Private.Uri: Value cannot be null. (Parameter 'uriString').
[8/21/2020 1:27:34 AM] Stopping JobHost
Value cannot be null. (Parameter 'provider')
How can I fix it?
There are couple of things you can check :
These are very generic explanation for the problem statement as that doesn't provide more details. In case of functions many a times we see this error because if the connection string value is read from Azure Key Vault and you miss out on setting this value in the app settings of Azure Function configuration. In this scenario, an Access Policy created in the Key Vault configuration so that Azure Function application can read the values from the Key Vault. So you need to reverify the access policies to make sure the app settings values of the keys have valid values.
For me the problem was that I had pasted an incorrect connection string value into local.settings.json
- instead of "EndPoint=...
I had "\"Endpoint=...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With