Kentico keeps restarting - Hosting Environment caused shutdown

Carmen Mihaela Stefan asked on September 15, 2014 13:26

Hello, I have some problems with my website. From about a week ago it has been restarting repeatedly. It's happening almost every 2 minutes. I can't work in Kentico CMS because it's constantly logging me out. The errors that appear in Event Log are:

EventID: 117382

EventType: W

EventTime: 9/15/2014 1:37:52 PM

Source: Application_End

EventCode: ENDAPP

EventDescription: Message: HostingEnvironment initiated shutdown
HostingEnvironment caused shutdown
Shutdown stack:    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal()
   at System.Web.Hosting.PipelineRuntime.StopProcessing()
Call stack:    at CMSAppBase.LogApplicationEnd()
   at CMSAppBase.CMSApplicationEnd(Object sender, EventArgs e)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at System.Web.HttpApplication.InvokeMethodWithAssert(MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs)
   at System.Web.HttpApplication.ProcessSpecialRequest(HttpContext context, MethodInfo method, Int32 paramCount, Object eventSource, EventArgs eventArgs, HttpSessionState session)
   at System.Web.HttpApplicationFactory.Dispose()
   at System.Web.HttpRuntime.Dispose()
   at System.Web.HttpRuntime.ReleaseResourcesAndUnloadAppDomain(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

We have a shared hosting of 512MB (this is their max limit). It could be that the application doesn't have enough memory and that's why it's restarting constantly? I'm out of options here and I don't know what to do in order to stabilize the CMS. Has anyone encounter this kind of situation? What are the solutions?

Thank you.

Recent Answers


Brenden Kehren answered on September 15, 2014 14:50

It could be a lack of memory although I believe Kentico only requires 256MB to run the site. It could also be errors on the site. Have you checked the event log for other errors?

0 votesVote for this answer Mark as a Correct answer

Carmen Mihaela Stefan answered on September 15, 2014 15:35

Yes, I did. That is the only error that appears in event log regard to this problem.

Another error occurs sometimes and randomly.Image Text This error appears not only on CMS page, but on front-end website (rarely).

I've been checking if there are some config files or any other physical files being modified but there aren't. I read on some posts about number of recompile, but in the web.config file is the default value (100).

Sometimes the app is restarting after a few minute of being idle, sometimes is restarting while I'm editing the content of a page. If we move our website to a VPS Hosting with a greater memory, would be this a solution?

Thank you very much.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 15, 2014 15:43

It could be although I don't believe by the error you're showing it will resolve much of anything. The Validation of viewstate MAC failed error is typically because you haven't included a machine key in your web.config.

By the sounds of it, you're using Arvixe hosting is that right? If you are in the control panel for your site there is a link on the left column that will generate a machine key for you. Make sure you add both keys it tells you to (machine key and session state and remember to remove the current session state key when adding the new one) This should resolve the error you posted in the image and probably the other issues as well.

0 votesVote for this answer Mark as a Correct answer

Carmen Mihaela Stefan answered on September 15, 2014 16:07

I will give it a try and I hope this will solve at least one part of the errors.

Thank you for your answers.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.