Skip to content

Error in Aspire run session could not be started: failed to connect to IDE run session notification endpoint: unexpected EOF #4437

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

Closed
GoranDeveloper opened this issue Jun 10, 2024 · 8 comments
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Comments

@GoranDeveloper
Copy link

Microsoft Visual Studio Community 2022 (2) (64-bit) - Preview
Version 17.11.0 Preview 1.1
9.0.100-preview.4.24267.66

fail: Aspire.Hosting.Dcp.dcpctrl.ExecutableReconciler[0]
failed to start Executable {"Executable": {"name":"apiservice-0faj1o0"}, "Reconciliation": 6, "error": "run session could not be started: failed to connect to IDE run session notification endpoint: unexpected EOF"}

Can someone assist ?
I go in production with aspire.

Thank you

@ghost ghost added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Jun 10, 2024
@davidfowl
Copy link
Member

@joperezr Can we fix the .NET 9 situation with the workloads? Maybe we need to document something that we can point people at.

@joperezr
Copy link
Member

Yeah, the fix is to change the 9.0 SDK to use Aspire 8.0 instead of it pulling down a dead end 9.0 version. After that we can also likely de-list 9.0 workload packages.

I'll take care of it this week. We'll still have the issue with requiring the 8.0 runtime for the dashboard, but we can fix that too.

@joperezr
Copy link
Member

I've put up PR dotnet/sdk#41562 which will make it so that even 9.0 SDKs use 8.0 Aspire, and will enable us to delist 9.0 preview packages to avoid future confusions, and also to simplify the fix to issues like this by just requiring an SDK update to fix them.

@GoranDeveloper I noticed that I didn't actually help you fix the current issue. Can you please try using Aspire 8.0 instead of the 9.0 version? For now and until the PR I mention above is merged, you can do this by following these steps:

  1. Generate a file called rollback.txt with the following contents:
{
  "microsoft.net.sdk.aspire": "8.0.1/8.0.100"
}
  1. From the command line, run dotnet workload update --skip-sign-check --from-rollback-file ./rollback.txt
  2. Then, also run: dotnet workload install aspire --skip-sign-check --from-rollback-file ./rollback.txt
  3. Finally, go to your Aspire solution, and update all references to Aspire packages to use version 8.0.1 instead. This includes the reference to Aspire.Hosting.AppHost in your AppHost project.

Let me know if the above doesn't work, or if it doesn't fix the issue you are hitting.

@joperezr joperezr added the needs-author-action An issue or pull request that requires more info or actions from the author. label Jun 12, 2024
@GoranDeveloper
Copy link
Author

@joperezr @davidfowl
Hi, it seem to work.
Thank you both for you help and support.

@dotnet-policy-service dotnet-policy-service bot removed the needs-author-action An issue or pull request that requires more info or actions from the author. label Jun 13, 2024
@joperezr
Copy link
Member

Happy to help. Please let us know if you hit any other issues 😃

@Hantse
Copy link

Hantse commented Jun 15, 2024

Hello,

I'm quite surprise, i've the same issue, it's normal publish version with major issue ?

@davidfowl
Copy link
Member

.NET 9 is a preview, .NET Aspire targets .NET 8, not 9.

@Hantse
Copy link

Hantse commented Jun 15, 2024

But if we stay on version 8.0, it's not possible to host/test others project type in 9.0 version i'm right ? (with aspire)

@github-actions github-actions bot locked and limited conversation to collaborators Jul 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Projects
None yet
Development

No branches or pull requests

4 participants