Home > Software design >  I want to ask about how to make app always running in Net Core [closed]
I want to ask about how to make app always running in Net Core [closed]

Time:09-17

I have set the .NET CLR version to v4.0, Set start mode to “Always Running”, Set Idle Time-Out (minutes) to 0, set the “Preload Enabled” value to true in IIS Manager. But I dunno why my app sometimes shutdown and don't send email. Can someone give me some advices?

CodePudding user response:

In the website, there is a global.asax file, and there is an Application_Error function. Please put your code in this function.

void Application_Error(object sender, EventArgs e)
{
    // Send an email in case of error/exception
}

CodePudding user response:

You can easily do this using the Application Initialization or you need to create a personal service that sends a request to your application at regular intervals.

  • Related