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

Windows cannot find 'https://localhost:xxxx' when starting Aspire project #263

Closed
thomasvdb opened this issue Oct 11, 2024 · 7 comments · Fixed by #267
Closed

Windows cannot find 'https://localhost:xxxx' when starting Aspire project #263

thomasvdb opened this issue Oct 11, 2024 · 7 comments · Fixed by #267
Assignees
Labels
bug Something isn't working

Comments

@thomasvdb
Copy link

Describe the bug
Since the upgrade to version 1.5.0, I get an error pop-up for each project starting up (about 14 times) stating the following error message:
"Windows cannot find 'http://localhost:50622;http://localhost:50632'. Make sure you typed the name correctly, and then try again"

Everything starts up correctly however so I can still work but it's a bit annoying of course.

To Reproduce
Steps to reproduce the behavior:

  1. Start the Aspire apphost project

Expected behavior
No error popups.

Screenshots
Schermafbeelding 2024-10-11 101222

System information:

  • OS: Windows
  • .NET version: 8
  • JetBrains Rider version: JetBrains Rider 2024.2.6
  • Aspire plugin version: 1.5.0
  • Aspire workload version: 8.1.0
@thomasvdb thomasvdb added the bug Something isn't working label Oct 11, 2024
@thomasvdb thomasvdb changed the title Windows cannot find 'https://localhost:50622' when starting Aspire project Windows cannot find 'https://localhost:xxxx' when starting Aspire project Oct 16, 2024
@rafaelldi rafaelldi self-assigned this Oct 21, 2024
@rafaelldi
Copy link
Collaborator

@thomasvdb Thank you for the report! It should be fixed in the next release

@thomasvdb
Copy link
Author

@rafaelldi Thanks for the fix!
I have a follow up question.

What's the reason the behavior changed when starting an Aspire project?
Previously when running an Aspire project, it only launched the Aspire dashboard in the browser.

Now all projects are being launched in the browser (which are more then 30 in our case).
Is this wanted behavior?

@rafaelldi
Copy link
Collaborator

It wasn't implemented properly before. Now I decided to align it with the behavior of launchSettings.json. You can disable the browser launching with this launchBrowser setting.

image

@thomasvdb
Copy link
Author

To be honest, I liked the previous behavior (and it's also the default behavior in Visual Studio).
If I need the complete Aspire setup, I'll start the Aspire project and only the dashboard is launched. I can then decide myself via the dashboard which URLs I want to open.

If I only need to run a certain project (for development or debugging purposes), I'll start that specific project but then the project should launch automatically.

Now I have to change the launchSettings.json file between each scenario.

@rafaelldi
Copy link
Collaborator

Unfortunately, the current design of Aspire's integration with the IDE relies on launchSettings.json.
I can add a separate setting for you to disable browser launch for child projects.

@rafaelldi
Copy link
Collaborator

@thomasvdb Here is the new setting

image

@thomasvdb
Copy link
Author

That's awesome, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants