LogicAppsUX icon indicating copy to clipboard operation
LogicAppsUX copied to clipboard

Logic App .NET 8 Custom Code Project - Failed to find the .NET host child process on launch

Open cam96 opened this issue 5 months ago • 5 comments

Summary

After installing vs code and la standard extension on a brand new install of windows 11 pro, I'm getting an error when launching a .net 8 custom code workspace project. The code and project run fine, so the error is not impacting functionality.

Error Info

Does this occur consistently?

Yes

Repro steps

  1. Installed VS Code and logic app standard extension on a fresh install of windows 11 pro.
  2. Follow these instructions to setup a hello world logic app using .NET 8 custom code.
  3. Run from visual studio code in debug mode
  4. When launching the debugger locally on my PC, I see an error in the terminal suggesting that the csproj does not exist. The specific entry in the log below is "[2025-08-09T22:10:56.144Z] Csproj not found in C:\source\ContosoLogicApp\MyLogicAppWorkspace\WeatherForecastLA directory tree. Skipping user se[2025-08-09T22:10:56.144Z] Csproj not found in C:\source\ContosoLogicApp\MyLogicAppWorkspace\WeatherForecastLA directory tree. Skipping user secrets file configuration."
  5. I also see a visual studio error appearing.
Image

Error Info

Action: azureLogicAppsStandard.debugLogicApp Error type: Error Error Message: Failed to find the .NET host child process for the functions project for logic app "WeatherForecastLA".

Version: 5.130.10 OS: win32 OS Release: 10.0.26100 Product: Visual Studio Code Product Version: 1.103.0 Language: en

Call Stack pickCustomCodeNetHostProcessInternal pickCustomCodeNetHostProcess.ts:117:11 debugLogicApp debugLogicApp.ts:39:42

Terminal Logs

 *  Executing task in folder WeatherForecastFA: C:\Users\camer\.azurelogicapps\dependencies\DotNetSDK\dotnet.exe build C:\source\ContosoLogicApp\MyLogicAppWorkspace\WeatherForecastFA 

  Determining projects to restore...
  All projects are up-to-date for restore.
  WeatherForecastFA -> C:\source\ContosoLogicApp\MyLogicAppWorkspace\WeatherForecastFA\bin\Debug\net8\WeatherForecastFA.dll
  Determining projects to restore...
  Restored C:\Users\camer\AppData\Local\Temp\kmk1gstg.n2h\WorkerExtensions.csproj (in 256 ms).
  WorkerExtensions -> C:\Users\camer\AppData\Local\Temp\kmk1gstg.n2h\buildout\Microsoft.Azure.Functions.Worker.Extensions.dll
  WeatherForecastFA -> C:\source\ContosoLogicApp\MyLogicAppWorkspace\WeatherForecastFA\bin\Debug\net8\publish\
  Determining projects to restore...
  Restored C:\Users\camer\AppData\Local\Temp\43wcrdhv.y2x\WorkerExtensions.csproj (in 197 ms).
  WorkerExtensions -> C:\Users\camer\AppData\Local\Temp\43wcrdhv.y2x\publishout\Microsoft.Azure.Functions.Worker.Extensions.dll
  WorkerExtensions -> C:\Users\camer\AppData\Local\Temp\43wcrdhv.y2x\publishout\

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:04.89
 *  Terminal will be reused by tasks, press any key to close it. 

 *  Executing task in folder WeatherForecastLA: C:\Users\camer\.azurelogicapps\dependencies\DotNetSDK\dotnet.exe C:\Users\camer\.azure-```

> functions-core-tools\Functions\ExtensionBundles\Microsoft.Azure.Functions.ExtensionBundle.Workflows\1.131.9\bin\Microsoft.Azure.Workflows.BuildTasks.DebugSymbolGenerator.dll 
> 
> Generating debug symbols...
> Debug symbols generated.
>  *  Terminal will be reused by tasks, press any key to close it. 
> 
>  *  Executing task in folder WeatherForecastLA: C:\Users\camer\.azurelogicapps\dependencies\FuncCoreTools\func host start 
> 
> Azure Functions Core Tools
> Core Tools Version:       4.1.0+9a53409b640bbb39ef49467f000f46c5d81d4bbf (64-bit)
> Function Runtime Version: 4.40.100.25262
> Function Runtime Version: 4.40.100.25262
> **[2025-08-09T22:10:56.144Z] Csproj not found in C:\source\ContosoLogicApp\MyLogicAppWorkspace\WeatherForecastLA directory tree. Skipping user se[2025-08-09T22:10:56.144Z] Csproj not found in C:\source\ContosoLogicApp\MyLogicAppWorkspace\WeatherForecastLA directory tree. Skipping user secrets file configuration.**
> Functions:
>         MyWorkflow:  http://localhost:7071/api/MyWorkflow/triggers/When_a_HTTP_request_is_received/invoke
> crets file configuration.
> Functions:
>         MyWorkflow:  http://localhost:7071/api/MyWorkflow/triggers/When_a_HTTP_request_is_received/invoke
>         Net8HealthCheck: workflowActionTrigger
>         Net8HealthCheck: workflowActionTrigger
>         WeatherForecastFA: workflowActionTrigger
>         WorkflowDispatcher: edgeWorkflowRuntimeTrigger
> For detailed output, run func with --verbose flag.
> [2025-08-09T22:10:59.595Z] Worker process started and initialized.
> For detailed output, run func with --verbose flag.
> [2025-08-09T22:10:59.595Z] Worker process started and initialized.
> [2025-08-09T22:11:04.147Z] Host lock lease acquired by instance ID '0000000000000000000000009152264C'.
> [2025-08-09T22:11:04.147Z] Host lock lease acquired by instance ID '0000000000000000000000009152264C'.
> [2025-08-09T22:12:40.427Z] Executing 'Functions.MyWorkflow' (Reason='This function was programmatically called via the host APIs.', Id=431b3558-ceab-4507-94f4-9346cb17b06e)
> [2025-08-09T22:12:40.874Z] Executing 'Functions.WorkflowDispatcher' (Reason='(null)', Id=935b3890-6f0a-4849-8bf6-02701e53e047)
> [2025-08-09T22:12:40.899Z] Executing 'Functions.WeatherForecastFA' (Reason='(null)', Id=3c9155eb-813b-47d8-9d5d-e80de441d01e)
> [2025-08-09T22:12:41.117Z] Starting WeatherForecastFA with Zip Code: 85396 and Scale: Celsius
> [2025-08-09T22:12:41.129Z] Executed 'Functions.WeatherForecastFA' (Succeeded, Id=3c9155eb-813b-47d8-9d5d-e80de441d01e, Duration=228ms)
> [2025-08-09T22:12:41.142Z] Executed 'Functions.WorkflowDispatcher' (Succeeded, Id=935b3890-6f0a-4849-8bf6-02701e53e047, Duration=271ms)        
> [2025-08-09T22:12:41.178Z] Executing 'Functions.WorkflowDispatcher' (Reason='(null)', Id=a48c6a31-bdfd-408a-9ed3-d6764c35e096)
> [2025-08-09T22:12:41.198Z] Executed 'Functions.WorkflowDispatcher' (Succeeded, Id=a48c6a31-bdfd-408a-9ed3-d6764c35e096, Duration=20ms)
> [2025-08-09T22:12:41.210Z] Executed 'Functions.MyWorkflow' (Succeeded, Id=431b3558-ceab-4507-94f4-9346cb17b06e, Duration=799ms)

cam96 avatar Aug 09 '25 22:08 cam96

Hi @cam96 thanks for raising this issue. I was able to repro it, we will take a look at what is happening here.

ccastrotrejo avatar Aug 11 '25 15:08 ccastrotrejo

@ccastrotrejo this seems like the same bug addressed in this commit https://github.com/Azure/LogicAppsUX/commit/1d08664910cda2ed846c785881133354a7274d99 was this included in 5.130.10?

andrew-eldridge avatar Aug 25 '25 20:08 andrew-eldridge

Hey @andrew-eldridge I just checked it and that change was cherry picked to the hotfix branch of v5.130 in the following PR - https://github.com/Azure/LogicAppsUX/pull/7799

Are you not able to repro it?

ccastrotrejo avatar Aug 26 '25 15:08 ccastrotrejo

@ccastrotrejo got it, I can take a look at this one. Haven't attempted repro yet

andrew-eldridge avatar Aug 26 '25 15:08 andrew-eldridge

@cam96 can you confirm whether the error is still occurring in the latest VS Code extension (5.185.10)?

andrew-eldridge avatar Nov 17 '25 22:11 andrew-eldridge