An error occurred while starting the application.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hi,
From time to time (actually each week) without any change to the site code, I get this error:

An error occurred while starting the application.
.NET Core 4.6.27019.06 X86 v4.0.0.0    |   Microsoft.AspNetCore.Hosting version 2.1.1-rtm-30846    |    Microsoft Windows 6.3.9600    |   Need help?


All my sites are NopCommerce 4.10 and I used Nop-Template themes / plugins.

I have chosen Everleap as host provider because they are premium hosting partner for NopCommerce.

Their last answer to my ticket was :
This error is not caused by the server or services we provide. This is a known issue with nopCommerce application. Sometimes nopCommerce application hings and displays this error page. This issue is resolved by restarting the site or recycling the application pool.

I already lost 2 clients with this issue.  1 more and I am looking for another eCommerce solution.

I read this post: https://www.nopcommerce.com/boards/t/49851/serious-iis-application-pool-recycling-bugdesign-flaw.aspx

But there is not a clear solution except to set a uptime robot and restart the sites if an error occurs.

Does anybody find a solution ?

Thank you

Erik
5 years ago
Hello Erik,

It looks like it is the same error, that is explained in the thread you've linked but since you haven't posted the error details I cannot be sure. You can get the error details either from the system log (Administration -> System -> Log). Or by enabling the nopCommerce log and reading the log file as explained in this article from our documentation.

If it is, in fact, the same error you can follow my instructions below:

We usually suggest to our clients to disable the overlapped recycle of their application pools in order to avoid this issue.
This is the only solution we know since this issue happens on application starts when nopCommerce tries to delete the shadow copies of the .dll files of the plugins and another process is holding them locked. Disabling the overlapped recycle effectively prevents that from happening.

You should contact Everleap to ask them how to do that on your site.

Hope that helps!

Regards,
Anton
4 years ago
Hi Anton,

What do you mean exactly with 'overlapped' recycling of an application pool? The default recycling configuration is a fixed time interval of 1740 minutes. Shoud I turn off recycling completely and only recycle the pool manually or is manual recycling also a problem?

Kind regards, Stephan
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.