Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Function not loaded with specific host settings - logging #6660

Closed
1 task done
petrkasnal opened this issue Nov 13, 2024 · 31 comments
Closed
1 task done

Azure Function not loaded with specific host settings - logging #6660

petrkasnal opened this issue Nov 13, 2024 · 31 comments
Assignees
Labels
area-tooling azure Issues associated specifically with scenarios tied to using Azure azure-functions Issues related to the Azure Functions integration vs Issues related to Visual Studio tooling for aspire
Milestone

Comments

@petrkasnal
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When I use the Azure Function in Aspire, a strange behavior occurs when I have this block in host.json. It happened in the previous version 9.0 as I mention here and it happens now in version 9.1.0-preview.1.24561.5.

What happens is that Aspire starts and shows the function loading, which eventually doesn't load and after 120 seconds it throws Failed to start. I used the example repository for Azure Function in Aspire.

I prepared repository - https://github.com/petrkasnal/AspireHostProblem

{
  "version": "2.0",
  "logging": {
    "logLevel": {
      "Default": "Debug", // If enable function isnt load
      "System": "Information",
      "Microsoft": "Information"
    },
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      },
      "enableLiveMetricsFilters": true
    }
  }
}
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      timeout of 120 seconds exceeded waiting for the IDE to start a run session; you can set the DCP_IDE_REQUEST_TIMEOUT_SECONDS environment variable to override this timeout (in seconds)    {"Executable": {"name":"funcapp-czmfpfza"}, "Reconciliation": 2, "error": "Put \"https://localhost:64604/run_session?api-version=2024-04-23\": context deadline exceeded"}

Image

Expected Behavior

I would expect the logging settings to have no effect on Azure function execution. It's holding us back now because I have to keep overwriting it and that's not very convenient.

Steps To Reproduce

Open repository - https://github.com/petrkasnal/AspireHostProblem
Run AzureFunctionsTest.AppHost project

If you edit host.json - comment line "Default": "Debug" and starts work

Exceptions (if any)

No response

.NET Version info

9.0.0-rc.2.24473.5

Anything else?

No response

@captainsafia
Copy link
Member

@petrkasnal Thanks for reporting this issue! I took at stab and trying your repro and noticed the following exception at startup:

Microsoft.Azure.WebJobs.Extensions.EventHubs: EventHub account connection string with name 'eventhubs' does not exist in the settings. Make sure that it is a defined App Setting.

I believe this is related to the fact that the eventHubs resource is not configured by default in your sample:

builder.AddAzureFunctionsProject<Projects.AzureFunctionsTest_Functions>("funcapp")
    .WithReference(messaging)
    .WithReference(messaging2)
    .WithReference(messaging3)
    .WithReference(messaging4)
    .WithReference(messaging5)
    .WithReference(messaging6);
    //.WithReference(eventHubs);
    //.WithReference(serviceBus);

Once I re-enable the event hubs resource, things seem to work fine there.

You also mentioned that you're seeing the following DCP exception:

fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      timeout of 120 seconds exceeded waiting for the IDE to start a run session; you can set the DCP_IDE_REQUEST_TIMEOUT_SECONDS environment variable to override this timeout (in seconds)    {"Executable": {"name":"funcapp-czmfpfza"}, "Reconciliation": 2, "error": "Put \"https://localhost:64604/run_session?api-version=2024-04-23\": context deadline exceeded"}

In the past, I've seen this happen when the functions process fails to start. This might be related to the issues you are seeing in #6661. Do you repro this when launching from the command line via dotnet run?

@captainsafia captainsafia added area-integrations Issues pertaining to Aspire Integrations packages azure Issues associated specifically with scenarios tied to using Azure azure-functions Issues related to the Azure Functions integration labels Nov 14, 2024
@petrkasnal
Copy link
Author

I edited the repository. I left really just the function execution to show that it doesn't matter if something is attached to it.

builder.AddAzureFunctionsProject<Projects.AzureFunctionsTest_Functions>("funcapp");

If the Aspire starts, the function doesn't run. If a line is added to host.json as in the specification - "Default": "Debug", it will start immediately. Try and see. Issue #6661 is related to a different problem and is mine.

I just tried using dotnet run and unfortunately I don't use it, so I don't know if I'm doing it right. But it throws me this error in the console.I started the dotnet run project in Aspire. I don't think that has anything to do with it.

2024-11-14T10:26:57
 Unhandled exception: System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'func' with working directory 'bin\Debug\net8.0\'. The system cannot find the file specified.
2024-11-14T10:26:57
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
2024-11-14T10:26:57
    at Microsoft.DotNet.Cli.Utils.Command.Execute(Action`1 processStarted)
2024-11-14T10:26:57
    at Microsoft.DotNet.Tools.Run.RunCommand.Execute()
2024-11-14T10:26:57
    at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult)
2024-11-14T10:26:57
    at System.CommandLine.ParseResult.Invoke()
2024-11-14T10:26:57
    at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, TimeSpan startupTime, ITelemetry telemetryClient)

@captainsafia
Copy link
Member

@petrkasnal Can you verify what version of the Azure Functions Core Tools you are using? Running:

> func --version

should get this info.

@petrkasnal
Copy link
Author

@captainsafia sure - 4.0.5907

@captainsafia
Copy link
Member

@petrkasnal Ah, I see. Your version is about 6 months old. Can you try upgrading to the latest? It should be 4.6610.

@petrkasnal
Copy link
Author

@captainsafia I promoted the version. However, it didn't help, it's still the same.I tried running from visual studio and using dotnet run.

@davidfowl
Copy link
Member

If you get that DCP error it means your functions tooling or visual studio version is too old. Here's how you can force an update in VS https://learn.microsoft.com/en-us/dotnet/aspire/serverless/functions?tabs=dotnet-cli&pivots=visual-studio#azure-function-project-constraints

@petrkasnal
Copy link
Author

@davidfowl I've tried that before. I use Visual Studio 2022 preview. And I have the latest version installed.
Image

@davidfowl
Copy link
Member

Are you still seeing:

      timeout of 120 seconds exceeded waiting for the IDE to start a run session; you can set the DCP_IDE_REQUEST_TIMEOUT_SECONDS environment variable to override this timeout (in seconds)    {"Executable": {"name":"funcapp-czmfpfza"}, "Reconciliation": 2, "error": "Put \"https://localhost:64604/run_session?api-version=2024-04-23\": context deadline exceeded"}

?

@petrkasnal
Copy link
Author

petrkasnal commented Nov 18, 2024

@davidfowl
Yes, it's the same. Function loads and then crashes on the same error.

Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      timeout of 120 seconds exceeded waiting for the IDE to start a run session; you can set the DCP_IDE_REQUEST_TIMEOUT_SECONDS environment variable to override this timeout (in seconds)    {"Executable": {"name":"funcapp-wsutejud"}, "Reconciliation": 2, "error": "Put \"https://localhost:63277/run_session?api-version=2024-04-23\": context deadline exceeded"}

Image
Image

@captainsafia
Copy link
Member

If you get that DCP error it means your functions tooling or visual studio version is too old. Here's how you can force an update in VS https://learn.microsoft.com/en-us/dotnet/aspire/serverless/functions?tabs=dotnet-cli&pivots=visual-studio#azure-function-project-constraints

@davidfowl That doesn't always have to be the case. Sometimes the DCP timeout will happen if the Functions host failed to start for some other reason.

From this comment, I noticed that @petrkasnal didn't have the correct WithReference for the EventHubs trigger setup so startup for his host crashed and I suspect he got the DCP error as a result of that.

@petrkasnal Can you share the logs you see out of the Functions project now that you've updated your Core tools?

@davidfowl
Copy link
Member

@davidfowl That doesn't always have to be the case. Sometimes the DCP timeout will happen if the Functions host failed to start for some other reason.

It really shouldn't though. This usually means there's some IDE issue interacting with the functions tooling.

cc @karolz-ms

@petrkasnal
Copy link
Author

@captainsafia
It could have been that before, but as I wrote, I modified the repository and now there is only Azure Function registration without .WithReference.

builder.AddAzureFunctionsProject<Projects.AzureFunctionsTest_Functions>("funcapp");

Yes sure here is the full Visual Studio log:

'AzureFunctionsTest.AppHost.exe' (CoreCLR: DefaultDomain): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\AzureFunctionsTest.AppHost.dll'. Symbols loaded.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Aspire.Hosting.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Hosting.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.ComponentModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Aspire.Hosting.Azure.Functions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Aspire.Hosting.Azure.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Hosting.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Diagnostics.DiagnosticSource.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Logging.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Diagnostics.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.DependencyInjection.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Configuration.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Logging.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Logging.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Collections.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Security.Cryptography.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Diagnostics.HealthChecks.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\KubernetesClient.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Options.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Collections.Concurrent.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Threading.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Diagnostics.Tracing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Configuration.EnvironmentVariables.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.FileProviders.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.FileProviders.Physical.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Configuration.FileExtensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Diagnostics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Configuration.Binder.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Configuration.Json.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Memory.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.IO.FileSystem.Watcher.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.ComponentModel.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Threading.Overlapped.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Runtime.InteropServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\Microsoft.Win32.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Text.Json.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Text.Encoding.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Configuration.UserSecrets.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Logging.EventLog.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Options.ConfigurationExtensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Logging.Console.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Logging.Debug.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Logging.EventSource.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.DependencyInjection.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Configuration.CommandLine.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Azure.Provisioning.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\netstandard.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Aspire.Hosting.Azure.Storage.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Net.Sockets.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Azure.ResourceManager.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Options.DataAnnotations.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Azure.Storage.Blobs.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\HealthChecks.Azure.Storage.Blobs.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Text.Encodings.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Runtime.Intrinsics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Numerics.Vectors.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Private.Uri.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Console.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Threading.Thread.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\System.Diagnostics.EventLog.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Collections.Specialized.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.ComponentModel.TypeConverter.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Threading.ThreadPool.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Collections.Immutable.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Http.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Routing.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.Features.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Hosting.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Hosting.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Server.Kestrel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Authentication.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Authentication.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Authorization.Policy.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Authorization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Grpc.AspNetCore.Server.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Routing.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Server.Kestrel.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Grpc.Core.Api.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Http.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Connections.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Net.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Hosting.Server.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.ObjectPool.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.HostFiltering.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.HttpOverrides.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.ObjectModel.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Authentication.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Security.Claims.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.DataProtection.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.DataProtection.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Cryptography.Internal.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Extensions.WebEncoders.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.IO.Compression.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Collections.NonGeneric.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\System.IO.Pipelines.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Reflection.Emit.Lightweight.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Reflection.Emit.ILGeneration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Reflection.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Grpc.Net.Common.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Metadata.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Google.Protobuf.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Http.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.ComponentModel.Annotations.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Threading.Channels.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Aspire.Hosting.DistributedApplication: Information: Aspire version: 9.1.0-preview.1.24561.5+9abbb30cabe217bd0d03ecd9793e7a7427a71675
Aspire.Hosting.DistributedApplication: Information: Distributed application starting.
Aspire.Hosting.DistributedApplication: Information: Application host directory is: C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\Microsoft.Win32.Registry.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Xml.XDocument.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Private.Xml.Linq.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Private.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Diagnostics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Diagnostics.Abstractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.Net.Http.Headers.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Net.Security.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Diagnostics.Process.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Text.RegularExpressions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Polly.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\YamlDotNet.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Net.Http.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Fractions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Runtime.Numerics.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Net.WebSockets.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\IdentityModel.OidcClient.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Net.NameResolution.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Security.Principal.Windows.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Azure.Identity.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Azure.Core.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Threading.Tasks.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\Azure.Storage.Common.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Runtime.InteropServices.RuntimeInformation.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Security.Cryptography.X509Certificates.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Aspire.Hosting.DistributedApplication: Information: Now listening on: https://localhost:17085
Aspire.Hosting.DistributedApplication: Information: Login to the dashboard at https://localhost:17085/login?t=bab32d7a03f7bc389a038df1483491d6
Aspire.Hosting.DistributedApplication: Information: Distributed application started. Press Ctrl+C to shut down.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost\bin\Debug\net8.0\System.Memory.Data.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Xml.ReaderWriter.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Security.Cryptography.Algorithms.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\8.0.11\Microsoft.AspNetCore.Http.Features.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'Anonymously Hosted DynamicMethods Assembly'. 
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Linq.Expressions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'AzureFunctionsTest.AppHost.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.11\System.Runtime.CompilerServices.Unsafe.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread '.NET TP Wait' (37416) has exited with code 0 (0x0).
The thread '.NET TP Worker' (43936) has exited with code 0 (0x0).
The thread '.NET TP Worker' (20144) has exited with code 0 (0x0).
The thread '.NET TP Worker' (36952) has exited with code 0 (0x0).
The thread '.NET TP Worker' (45000) has exited with code 0 (0x0).
The thread '.NET TP Worker' (42048) has exited with code 0 (0x0).
The thread '.NET TP Worker' (41624) has exited with code 0 (0x0).
The thread '.NET TP Worker' (4824) has exited with code 0 (0x0).
The thread '.NET TP Worker' (31792) has exited with code 0 (0x0).
The thread '.NET TP Worker' (27456) has exited with code 0 (0x0).
Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler: Error: timeout of 120 seconds exceeded waiting for the IDE to start a run session; you can set the DCP_IDE_REQUEST_TIMEOUT_SECONDS environment variable to override this timeout (in seconds)	{"Executable": {"name":"funcapp-wcththev"}, "Reconciliation": 2, "error": "Put \"https://localhost:63033/run_session?api-version=2024-04-23\": context deadline exceeded"}

The thread '.NET TP Worker' (38444) has exited with code 0 (0x0).

Logs on startup:

info: Aspire.Hosting.DistributedApplication[0]
      Aspire version: 9.1.0-preview.1.24561.5+9abbb30cabe217bd0d03ecd9793e7a7427a71675
info: Aspire.Hosting.DistributedApplication[0]
      Distributed application starting.
info: Aspire.Hosting.DistributedApplication[0]
      Application host directory is: C:\user\workspace\AzureChyba)\Wtf\AspireHostProblem\AzureFunctionsTest\AzureFunctionsTest.AppHost
info: Aspire.Hosting.DistributedApplication[0]
      Now listening on: https://localhost:17085
info: Aspire.Hosting.DistributedApplication[0]
      Login to the dashboard at https://localhost:17085/login?t=bab32d7a03f7bc389a038df1483491d6
info: Aspire.Hosting.DistributedApplication[0]
      Distributed application started. Press Ctrl+C to shut down.
fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
      timeout of 120 seconds exceeded waiting for the IDE to start a run session; you can set the DCP_IDE_REQUEST_TIMEOUT_SECONDS environment variable to override this timeout (in seconds)    {"Executable": {"name":"funcapp-wcththev"}, "Reconciliation": 2, "error": "Put \"https://localhost:63033/run_session?api-version=2024-04-23\": context deadline exceeded"}

Nothing see in Aspire console protocols.

Thank you

@petrkasnal
Copy link
Author

@davidfowl
I should have updated the Azure Function tool to the latest version.

@captainsafia
Copy link
Member

@petrkasnal OK! I was able to get a repro of the issue and extracted logs from DCP to help debug this. @karelz will share more details on this later.

Similar to the other issue you reported, this bug seems to manifest when launching from Visual Studio in particular.

@karolz-ms
Copy link
Member

I took a look and it seems DCP is doing what it is supposed to do. It just is not receiving a response from Visual Studio when requesting the startup of the functions project.

@captainsafia will follow up. This might be related to, or a duplicate of #6661

@davidfowl
Copy link
Member

@karolz-ms do we know which command is taking long to respond?

@karolz-ms
Copy link
Member

@davidfowl sorry this is outside of my area of expertise. My suspicion is that it is something specific to the VS-functions project interface, since I was able to run the app successfully from command line (dotnet run)

@tlmii FYI

@davidfowl
Copy link
Member

@karolz-ms I meant in the dcp logs.

@karolz-ms
Copy link
Member

@davidfowl it was "start project" request from DCP

@davidfowl
Copy link
Member

@vijayrkn can you prioritize this one?

@captainsafia
Copy link
Member

@tlmii has been taking a look at this in the background. We've got a reliable repro and have narrowed down that this seems to specifically be related to the Azure Functions + VS + debugging.

@tlmii has a hunch that the issue here might be related to the Functions runtime not writing some required debugging metadata to a shared source file when the debug log is enabled.

@tlmii -- do you want to verify what you've learned here?

@tlmii
Copy link
Member

tlmii commented Nov 26, 2024

Yeah, so to start off, we should be able to confirm that this is a debugging only scenario. It should work fine in VS for Ctrl+F5.

When we start debugging a functions app, we need to know the secondary process ID that functions launches so that we can attach the debugger to it. Func.exe (or in this case really dotnet.exe func.dll) normally writes that information out to a temporary file using a startup hook (https://github.com/Azure/azure-functions-dotnet-worker/blob/c4113d1c5936ab3235d7a73ec5a88596977c8335/src/DotNetWorker.Core/StartupHook.cs#L60) and VS waits for that to be written and uses the information there to attach the debugger to the correct processes.

For some reason, in this scenario, with "Default": "Debug", that information is never getting written to the output file and so VS ends up waiting (effectively) forever and you run into the timeout.

I attempted to reproduce the behavior outside of VS by calling the same command line from the same working directly that we pass to the debugger but it did not reproduce the behavior, so I must have missed some piece of what the debugger is doing.

The code in Azure Functions that writes out the PID to the output file (various methods in here: https://github.com/Azure/azure-functions-core-tools/blob/v4.x/src/Azure.Functions.Cli/Diagnostics/ColoredConsoleLogger.cs) uses fairly normal ILogger semantics, including having logging filtering involved. So it is possible that there is some conflict between that logging filtering and the configuration in host.json that is preventing it from being written out. That's just a guess though - would need someone from the Azure Functions team to confirm that.

@rithinch
Copy link

rithinch commented Nov 28, 2024

We have a bunch of existing node.js and python azure functions apps which we're looking to migrate to add into our .NET Aspire solution. What's the best way to achieve that?

Add dockerfile to our azure functions and then import into .NET Aspire via .AddDockerfile() or .AddContainer() - but not sure if this allows communication over HTTP with others services in .NET aspire solution?

I appreciate this thread might not be the best space for this query, but please pin out to the right resources if you know any way to achieve this 🙏

@tlmii
Copy link
Member

tlmii commented Dec 5, 2024

We believe we've tracked down the cause of the deadlock that is causing the original issue here. Essentially, nothing was reading from the console output of the host process while we waited for the worker process to launch. If there was enough output written (which was the case when logging was set to debug), the buffer would fill up and the last write attempt would be blocked, preventing the host process from eventually launching the worker process. Fix is in progress.

@tlmii tlmii self-assigned this Dec 5, 2024
@petrkasnal
Copy link
Author

@tlmii Sounds good! Thanks a lot

@tlmii
Copy link
Member

tlmii commented Dec 17, 2024

Ignore that tag of a PR, that was for a different fix.

We do have a fix for this issue that has been checked in and should be available with the next preview release of VS. Assuming validation goes well we can also discuss servicing 17.12 with it.

@petrkasnal
Copy link
Author

@tlmii Hi, I would just like to ask when the patch might be released. Thank you very much.

@tlmii
Copy link
Member

tlmii commented Jan 14, 2025

@petrkasnal It will be in the next preview release of VS 17.13 when that is released. No public date of that yet but it's not far off. I have not heard anything about servicing 17.12 at this point.

@davidfowl davidfowl removed area-integrations Issues pertaining to Aspire Integrations packages untriaged labels Jan 14, 2025
@davidfowl davidfowl added this to the 9.1 milestone Jan 14, 2025
@joperezr joperezr added the vs Issues related to Visual Studio tooling for aspire label Jan 22, 2025
@captainsafia
Copy link
Member

VS 17.13 Preview 4 was released last week. I've verified that the repro shared in the original post launches successfully on this version and I see Debug level logs.

Closing as fixed. If you run into any issues, feel free to file a new bug.

@petrkasnal
Copy link
Author

petrkasnal commented Feb 4, 2025

VS 17.13 Preview 4 was released last week. I've verified that the repro shared in the original post launches successfully on this version and I see Debug level logs.

Closing as fixed. If you run into any issues, feel free to file a new bug.

Tested and working. Thanks a lot. Great work.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-tooling azure Issues associated specifically with scenarios tied to using Azure azure-functions Issues related to the Azure Functions integration vs Issues related to Visual Studio tooling for aspire
Projects
None yet
Development

No branches or pull requests

7 participants