I deployed asp.net core application of Digital Ocean server Ubuntu 16.04 nginx server.
The way I am doing is to publish it at my local machine, get all the dlls uploaded and then run below command:
dotnet applcationname.dll
It runs without any problem and continues until this comes:
System.NullReferenceException: Object reference not set to an instance of an object.
This error can be eliminated with the code change and that I am fixing in the meantime but the question is each time if any error or exception will come and dotnet will stop and then I have to get up mid of the night to run it seems unviable solution.
I think I am missing some workaround where errors can be logged and application should never go die until we say to.
Please help me folks.