Nop Commerce 4.1 restarts multiple times on Azure

1 week ago
I have a Nop Commerce 4.1 application on Azure

The problem is that the application randomly restarts and I have no idea why this is happening.

Does anyone here have similar problems ? What could be causing this ?




Thanks
1 week ago
Most times it does not look "random" ; based on the timestamp, it seems to be on the hour (and almost every hour).

See if this helps (...check diagnose and solve problems and web app restart detector)
https://learn.microsoft.com/en-us/answers/questions/693965/azure-app-service-is-restarting-everyday.html
1 week ago
New York wrote:
Most times it does not look "random" ; based on the timestamp, it seems to be on the hour (and almost every hour).

See if this helps (...check diagnose and solve problems and web app restart detector)
https://learn.microsoft.com/en-us/answers/questions/693965/azure-app-service-is-restarting-everyday.html


We have already done that in Azure and it didn't detect any restart...

This started to happen when we upgrade NOP from 4.0 to 4.1
1 week ago
I found the issue.

We have a console application that runs every hour and this code is doing that


public static void Main(string[] args)
        {
            EngineContextInitializer.Run();

            customerService = container.Resolve<ICustomerService>();
}


Do you know any better way of doing Console Apps where we dont need to do this ?
1 week ago
See if this helps
https://www.nopcommerce.com/en/boards/topic/29047/tutorial-how-to-use-nopcommerce-data-core-services-framework-in-your-external-program/page/3