Repository navigation
Description
REGRESSION INFO: Not repro on Aspire 8.0.0-preview.2.23619.3
INSTALL STEPS
Clean machine: MacOS
Install VS Code[1.85.2]
Install C# Dev Kit[1.3.8]
Install SDK 8.0.200
Install Aspire Preview 3 latest build 8.0.0-preview.3.24080.10
Apply NuGet Feeds
REPRO STEPS
- Create .NET Project > .NET Aspire Application > give a name > Create
- Right-click xxx.AppHost name > Open In Integrated Terminal > dotnet run
Note:
This issue is very unstable on Windows machine.
ACTUAL
Run aspire project with error: 'Time out while waiting for the dashboard to be responsive'

fail: Microsoft.Extensions.Hosting.Internal.Host[11]
Hosting failed to start
Aspire.Hosting.DistributedApplicationException: Timed out after 00:01:00 while waiting for the dashboard to be responsive.
at Aspire.Hosting.Dcp.ApplicationExecutor.WaitForHttpSuccessOrThrow(Uri url, TimeSpan timeout, CancellationToken cancellationToken) in //src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 307
at Aspire.Hosting.Dcp.ApplicationExecutor.CheckDashboardAvailabilityAsync(String delimitedUrlList, CancellationToken cancellationToken) in //src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 263
at Aspire.Hosting.Dcp.ApplicationExecutor.StartDashboardAsDcpExecutableAsync(CancellationToken cancellationToken) in //src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 239
at Aspire.Hosting.Dcp.ApplicationExecutor.RunApplicationAsync(CancellationToken cancellationToken) in //src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 92
at Aspire.Hosting.Dcp.DcpHostService.StartAsync(CancellationToken cancellationToken) in //src/Aspire.Hosting/Dcp/DcpHostService.cs:line 65
at Microsoft.Extensions.Hosting.Internal.Host.b__15_1(IHostedService service, CancellationToken token)
at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List1 exceptions, Func3 operation) Unhandled exception. System.AggregateException: One or more errors occurred. (Timed out after 00:01:00 while waiting for the dashboard to be responsive.) ---> Aspire.Hosting.DistributedApplicationException: Timed out after 00:01:00 while waiting for the dashboard to be responsive. at Aspire.Hosting.Dcp.ApplicationExecutor.WaitForHttpSuccessOrThrow(Uri url, TimeSpan timeout, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 307 at Aspire.Hosting.Dcp.ApplicationExecutor.CheckDashboardAvailabilityAsync(String delimitedUrlList, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 263 at Aspire.Hosting.Dcp.ApplicationExecutor.StartDashboardAsDcpExecutableAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 239 at Aspire.Hosting.Dcp.ApplicationExecutor.RunApplicationAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/ApplicationExecutor.cs:line 92 at Aspire.Hosting.Dcp.DcpHostService.StartAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpHostService.cs:line 65 at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__15_1(IHostedService service, CancellationToken token) at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List1 exceptions, Func3 operation)
at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
at Aspire.Hosting.DistributedApplication.RunAsync(CancellationToken cancellationToken) in //src/Aspire.Hosting/DistributedApplication.cs:line 132
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at Aspire.Hosting.DistributedApplication.Run() in /_/src/Aspire.Hosting/DistributedApplication.cs:line 153
at Program.
EXPECTED
No error and warning shows with run the project.
Activity
davidfowl commentedon Jan 31, 2024
Mitch Denny (@mitchdenny) we have so few logs now this is hard to debug 😄. We only print the URL if we can successfully hit the endpoint.
davidfowl commentedon Jan 31, 2024
Lisa Gao (@v-gaolisa) I am using 8.0.0-preview.3.24080.8 and I don't see this issue.
v-gaolisa commentedon Jan 31, 2024
I am confused, and I can also repro this issue using latest 8.0.0-preview.3.24080.10, can you share your installed steps.
[-][WebToolsE2E][Aspire] Failed to launch the dashboard when Using VS Code to Debug Aspire App: 'Time out while waiting for the dashboard to be responsive'.[/-][+][WebToolsE2E][Aspire][Mac] Failed to launch the dashboard when Using VS Code to Debug Aspire App: 'Time out while waiting for the dashboard to be responsive'.[/+]davidfowl commentedon Jan 31, 2024
I can reproduce this on MacOS
davidfowl commentedon Jan 31, 2024
OK I figured this out. It seems like the dashboard isn't an executable on MacOS:
Seems like we have a publishing/packaging issue here.
Thoughts David Negstad (@danegsta) Drew Noakes (@drewnoakes)?
cc Jose Perez Rodriguez (@joperezr)
drewnoakes commentedon Jan 31, 2024
Mitch Denny (@mitchdenny) in this case the dashboard would have failed to start. Could the
ApplicationExecutorknow that and bypass the one minute timeout, waiting for HTTP to come online?mitchdenny commentedon Jan 31, 2024
I think if the dashboard is supposed to start and it doesn't then we should fail. So failure here is the correct response. Perhaps what is missing is diagnostics on WHY the dashboard failed to start. Perhaps we should dump the console logs if we reach timeout with the dashboard having spun up?
13 remaining items
mo3in commentedon Feb 19, 2024
i replaced AppHost
launchSettings.jsonwith new project launchSetting, now its run and working!anikitsiuk commentedon Mar 25, 2024
I had the same issue in Windows, Mo3in (@mo3in) your workaround helped.
I had an issue with an empty Dashboard, and then I changed the applicationUrl in launchSettings.json, and got this timeout issue.
After creating a sample project I took its launchSettings.json and everything works fine. Here is the diff

UPD: I have Aspire 8.0.0-preview.4.24156.9
UPD2: I have to do that daily. After some time my Dashboard starts empty, and only the creation of the new Aspire project and usage of its launch settings helps.
vskliam commentedon Apr 12, 2024
Migrated from preview 3 to preview 4. Updated Visual Studio, updated workload. Got same issue - Timed out after 00:01:00 while waiting for the dashboard to be responsive.
Changing ports in launchsettings did not help.
anikitsiuk commentedon Apr 12, 2024
Try Preview 5, it's already available. I don't have this issue anymore
bhogiraju commentedon Apr 14, 2024
i am getting the error after upgrading. anyone have work around on this?
davidfowl commentedon Apr 14, 2024
What version of the aspire workload are you using? Run:
bhogiraju commentedon Apr 14, 2024
davidfowl commentedon Apr 14, 2024
And check the package version of Aspire.Hosting in the application you are running. It actually prints the version in the console output as one of the first things when you run an aspire app host.
bhogiraju commentedon Apr 14, 2024
Aspire version: 8.0.0-preview.4.24156.9+692dc41a65da572a7df25d53a9f2880afe59fdd8
davidfowl commentedon Apr 14, 2024
Seems like you're using eshop, it's been updated to preview 5.
bhogiraju commentedon Apr 14, 2024
Yes you are correct, what would be next work around?
davidfowl commentedon Apr 14, 2024
Update your eshop bits and you'll have the new version that uses preview 5.
bhogiraju commentedon Apr 14, 2024
but, while upgrading, identified many of them are deprecated packages.
bhogiraju commentedon Apr 14, 2024
Working as expected after upgrading all