What can be the problem? This exception is throwned by the console while running with docker (docker-compose). The VS2022 runs the project perfectly.
Unhandled exception. System.InvalidOperationException: Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date.
I have run: dotnet dev-certs https --clean AND dotnet dev-certs https --trust
You are not creating the dev certificate. You can do that with:
dotnet dev-certs https -ep $env:USERPROFILE\.aspnet\https\aspnetapp.pfx -p crypticpassword
dotnet dev-certs https --trust
See here for reference
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.