Logic App Standard Engine Error: System.Private.CoreLib: Could not find a part of the path ‘C:\home\site\wwwroot’

Today, we got a strange issue/error message while trying to deploy a few new Logic App Standard workflows from Visual Studio Code for a client. When I went to the Azure Portal to check if everything was good with the resource, I saw the following error message on the Overview page:

Microsoft.Azure.WebJobs.Script: Error building configuration in an external startup class. System.Private.CoreLib: Could not find a part of the path ‘C:\home\site\wwwroot’

Cause

This issue will typically occur when you configure your Logic App Standard to use a VNET, and of course, you enabled the network restriction on the associated storage account and add that VNET.

And the cause most likely is because you forgot to add to the Application settings in the Logic App Standard the following setting:

  • WEBSITE_CONTENTOVERVNET—This setting will enable the Logic App resource to access website content over VNET traffic, i.e., on SE or PEs.

Solution

To access your logic app workflow data over the virtual network, follow these steps:

  • On the logic app resource menu, under Settings, select Environment variables.
  • On the App settings tab, add the WEBSITE_CONTENTOVERVNET app setting, if none exist, and set the value to 1.
  • Don’t forget to Apply those changes, and it never hurts to restart your Logic App Standard instance.

I hope you find this helpful! If you liked the content or found it useful and want to help me write more, you can buy (or help me buy) my son a Star Wars Lego! 

Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc. He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

Leave a Reply

Your email address will not be published. Required fields are marked *

turbo360

Back to Top