On a beautiful day, after install new .net sdk, you suddenly can not start Aspire. The error is:Hosting failed to start System.IO.FileNotFoundException: The Aspire orchestration component is not installed at "C:\Program Files\dotnet\packs\Aspire.Hosting.Orchestration.win-x64\8.1.0\tools\dcp.exe". The application cannot be run without it.Look into the folder "C:\Program Files\dotnet\packs", the "8.1.0" folder does not exist. Not sure if .net installing process is removed "8.1.0" package.So we have to reinstall "8.1.0" package at this folder.Step 1: open Cmd by adminstrator rightStep 2: Navigate to Aspire host projectStep 3: Run this command to install 8.1.0 package to the folder "C:\Program Files\dotnet\packs":dotnet add package Aspire.Hosting.Orchestration.win-x64...
Thứ Sáu, 17 tháng 1, 2025
Thứ Hai, 13 tháng 1, 2025
How to setup certificate for localhost IIS Express
Step 1: Clean up all localhost certificatesOpen "Manage user certificates" in the windows search box.Select all localhost certificates in the "Personal/Certificates" folder and delete them.Select all localhost certificates in the "Trusted Root Certification Authorities/Certificates" folder and delete them. Open "Manage computer certificates" in the windows search box and then do the same things.Step 2: Using the command line to re-run the setup of the SSL certificate.Run cmd as administrator. Navigate to the IIS Express installation directory, the default path is typically: cd "C:\Program Files (x86)\IIS Express"Now execute the following command...
Đăng ký:
Bài đăng (Atom)