Hi,
According to the error message, I guess you used HttpsRedirection middleware in your application. It seems that you missed setting the https binding for your asp.net core application.
The HttpsRedirection middleware will check if you have set the https binding for your application.
Since I don’t know how you host your application in your server, I suggest you could try to comment out the app.UseHttpsRedirection(); in your application and deploy again, this may solve your issue.
If you still want to use https in your application, I suggest you could follow below article to set the https bindings.
Kestrel server: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-5.0#configureiconfiguration
IIS: https://support.microsoft.com/en-us/help/324069/how-to-set-up-an-https-service-in-iis
Bests,
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.