Hi Fermin Herrera,
The error message "The network path was not found: 'C:\home\site\wwwroot\host.json'" usually indicates that Azure Functions can't access the host.json
file. This could be due to the file being missing, corrupted, or a problem with the deployment.
Check if host.json Exists:
- Make sure the
host.json
file is in the root directory of your function app. It should be located in thewwwroot
folder. - You can verify this using the Kudu console in the Azure portal:
- Navigate to Development Tools > Advanced Tools (Kudu) > Debug Console > CMD, and check if
host.json
is atC:\home\site\wwwroot\host.json
- Navigate to Development Tools > Advanced Tools (Kudu) > Debug Console > CMD, and check if
- If the
host.json
file is missing or damaged, redeploy your function app to restore it. - If you've already restarted the function, try doing it again after redeploying the app to refresh the settings.
- Ensure there are no permission issues that might be blocking access to the file or directory.
For more details on troubleshooting Azure Functions, please refer to the documentations:
Troubleshoot error: "Azure Functions Runtime is unreachable" and Azure Functions host.json documentation
If you find the answer helpful, kindly click "Accept Answer" and upvote it. If you have any further questions or concerns, please feel free to reach out to us. We are happy to assist you.