My problem is that when launching the ASP.NET Core 6 application through the windows service, I get the following error:
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.
But when you run the program from the .exe, everything is fine, that is, there is no problem with the certificate.
How can I fix this problem?