Deployment to production

Hello everyone, i´m trying to deploy my webapp asp net core, but after deploy it on server i get the erro below:

The server is temporarily unable to service your request due to maintenance downtime or capacity problems

503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.

i tried to read the documentation but only found about asp Net as below:

image

im using the next code:
image

The method “SendEmail” has some private static methods to get the customized email for client, but i think this is not the problem…

im using a VPS with WHM cpanel CENTOS 7.9, by the way, to enable asp.net core i used NexusCore, can anyone help me…

Updated… (All works perfectly in localHost without problems)

i moved the code where it´s creating the recurring job to be executed in “Home Index method” but now, when i deploy my app, i get the next error only in the webpage where i´m using the code:

image

Error: