Share via

Azure Functions - dotnet exited with code

link 0 Reputation points
2026-01-26T07:22:23.0066667+00:00

In .NET10 isolated mode (EP1) function prints errors:

2026-01-26T07:06:34   [Error]   Starting worker process failed
2026-01-26T07:06:34   [Error]   Failed to start language worker process for runtime: dotnet-isolated. workerId:9c4cb7ac-a946-46b1-9c4d-accd80be154f
2026-01-26T07:06:34   [Information]   Reading functions metadata (Custom)
2026-01-26T07:06:34   [Information]   0 functions found (Custom)
2026-01-26T07:06:34   [Information]   0 functions loaded
2026-01-26T07:06:34   [Information]   You must install or update .NET to run this application.
2026-01-26T07:06:34   [Information]   App: /home/site/wwwroot/**.dll
2026-01-26T07:06:34   [Information]   Architecture: x64
2026-01-26T07:06:34   [Information]   Framework: 'Microsoft.NETCore.App', version '8.0.0' (x64)
2026-01-26T07:06:34   [Information]   .NET location: /usr/share/dotnet/
2026-01-26T07:06:34   [Information]   The following frameworks were found:
2026-01-26T07:06:34   [Information]     10.0.0 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
2026-01-26T07:06:34   [Information]   Learn more:
2026-01-26T07:06:34   [Error]   https://aka.ms/dotnet/app-launch-failed
2026-01-26T07:06:34   [Information]   To install missing framework, download:
2026-01-26T07:06:34   [Information]   https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=8.0.0&arch=x64&rid=linux-x64&os=ubuntu.24.04
2026-01-26T07:06:34   [Information]   Starting Host (HostId=***, InstanceId=50a370c7-82ef-4f76-9a59-0c84665cef60, Version=4.1045.200.2, ProcessId=27, AppDomainId=1, InDebugMode=False, InDiagnosticMode=False, FunctionsExtensionVersion=~4)
2026-01-26T07:06:34   [Information]   Loading functions metadata
2026-01-26T07:06:34   [Error]   Language Worker Process exited. Pid=68.

Function was upgraded according to recomendations

Looks like container image does not have .NET 8 installed which is required by host. source is .azurefunctions/function.deps.json (produced by dotnet publish)

"runtimeTarget": {
    "name": ".NETCoreApp,Version=v8.0",
    "signature": ""
  },
Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


2 answers

Sort by: Most helpful
  1. Pravallika KV 16,700 Reputation points Microsoft External Staff Moderator
    2026-01-27T10:11:28.1+00:00

    Hi link,

    Thanks for reaching out to Microsoft Q&A.

    Even though the Function App is configured for .NET 10 isolated (EP1) and the project targets net10.0, the Azure Functions runtime still requires .NET 8 at startup.

    • You must install or update .NET to run this application.
    • Framework: 'Microsoft.NETCore.App', version '8.0.0'
    • The frameworks found: 10.0.0

    The dependency on .NET 8 comes from .azurefunctions/function.deps.json, which is generated by Azure Functions tooling, not by the application project itself.

    Even with a net10.0 target, the Functions host / worker bootstrap logic still emits:

    "runtimeTarget": {   "name": ".NETCoreApp,Version=v8.0" }
    

    As a result, the worker process fails to start, and the host reports:

    0 functions found Failed to start language worker process for runtime: dotnet-isolated
    
    • Azure Functions v4 host is still based on .NET 8
    • “.NET 10 isolated (EP1)” is preview-only and incomplete
    • The host does not roll forward from .NET 8 =>.NET 10
    • Portal runtime settings do not override the generated deps file

    Resolution:

    Target net8.0

    Deploy normally

    <TargetFramework>net8.0</TargetFramework>
    

    Hope this helps!


    If the resolution was helpful, kindly take a moment to click on 210246-screenshot-2021-12-10-121802.pngand click on Yes for was this answer helpful. And, if you have any further query do let us know.

    Was this answer helpful?

    0 comments No comments

  2. Jaliya Udagedara 2,856 Reputation points MVP Volunteer Moderator
    2026-01-27T09:38:04.64+00:00

    Seems your Function App is targetting .NET 8?

    And the error is most likely because .NET 8 isn't available in your Azure Functions hosting environment.

    Since you aren't using Docker, you will need to make a Self-contained deployment which is publish the app with the runtime bundled. This increases deployment size. But it makes sure runtime goes along with your app.

    So something like,

    - task: UseDotNet@2
      displayName: Install .NET 8.0.x
      inputs:
        packageType: 'sdk'
        version: '8.0.x'
    
    - task: DotNetCoreCLI@2
      displayName: Publish
      inputs:
        command: 'publish'
        publishWebProjects: false
        projects: |
          $(System.DefaultWorkingDirectory)/<YourProject>.csproj
        arguments: --output $(System.DefaultWorkingDirectory)/publish_output --configuration Release --self-contained true --runtime linux-x64
    

    Was this answer helpful?

    0 comments No comments

Your answer

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