Funcion App: The network path was not found

Fermin Herrera 0 Reputation points
2025-03-10T17:12:14.22+00:00

Hi, for some reason, one of our function stopped working we have this error

System.Private.CoreLib: The network path was not found. : 'C:\home\site\wwwroot\host.json'.

We try restart the function app but didn't work

Could you please check this image error?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,531 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shireesha Eeraboina 2,065 Reputation points Microsoft External Staff
    2025-03-11T06:51:52.1733333+00:00

    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 the wwwroot 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 at C:\home\site\wwwroot\host.json
    • 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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.