-
Hi there, congrats first of all to the recent GA release of .NET Aspire! In order to get more information about this error I have set:
in my application.json of the AppHost project which gives me the following logs:
So it looks like there's an issue with DCP that is required by Aspire (documented at https://github.com/dotnet/aspire/blob/main/docs/specs/IDE-execution.md). I assume there's no sense setting the the environment variable by myself. Here are first of all the required details about my environment:
Next, I have installed .NET Aspire workload via:
And finally, here are the exact steps that I did:
Was there anything wrong from my side? Many thanks in advance for any kind of hint. Just before sending the issue I have recognized the following section in the Aspire documentation (my first link above): For IDE execution to work, two conditions need to be fulfilled:
How am I supposed to do that in VSCode? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You don't need an IDE, that's for the enhanced experience. The command line should work just fine without one (VS or VS code). Can you see the error in the dashboard? |
Beta Was this translation helpful? Give feedback.
-
Hi @davidfowl , thanks for your instant reply, I was able to solve it. The most important thing for me was that line: Since I am a Linux user, I have followed a few links and landed right here: I have executed the following commands:
I still get a warning for in my browser that the ASP.NET Core developer certificate is not trusted but there's no "unhandled error" anymore on the dashboard and it properly loads it now: So I am very happy that it's working now on my side. |
Beta Was this translation helpful? Give feedback.
Hi @davidfowl , thanks for your instant reply, I was able to solve it.
I have tried it again first of all via CLI only and have followed exactly the steps described here:
https://learn.microsoft.com/en-us/dotnet/aspire/get-started/build-your-first-aspire-app?pivots=dotnet-cli
The most important thing for me was that line:
If you haven't already trusted the ASP.NET Core localhost certificate, you will need to trust the certificate before running the app:
Since I am a Linux user, I have followed a few links and landed right here:
https://learn.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-8.0&tabs=visual-studio%2Clinux-ubuntu#trust-https-certificate-on-linux
I have …