Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Web application restarts continually View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
lucyht - 4/11/2011 1:09:56 PM
   
Web application restarts continually
I am running version 5.5 R2 Hotfix 16 (build v5.5.4108) on .net version 4.0.30319 on a shared hosting environment. however I am getting the application is being continually restarted with this message:

Message: HostingEnvironment initiated shutdown
HostingEnvironment caused shutdown

Full error is below:

This set up runs fine on my local dev and test servers (win 7 and win 2008) and I am successfully running 5.5 and 5.5 R2 sites in .net 2.0 application pools on the same shared server. In fact the site I am trying to import is already running on the server under a different domain, this is just meant to be an upgrade to the latest hot fix and to .Net 4.0. The site is now unusable, the app is recycling even when browsing the errors in the event log!

Any thoughts from a Kentico point of view? The hosting provider thinks it is the application not the server of course :-).


Stack trace:

at System.Environment.get_StackTrace()
at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal()
at System.Web.Hosting.HostingEnvironment.InitiateShutdownWithoutDemand()
at System.Web.Hosting.PipelineRuntime.StopProcessing()

Call stack: at Global.LogApplicationEnd()
at Global.Application_End(Object sender, EventArgs e)
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
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.FireApplicationOnEnd()
at System.Web.HttpApplicationFactory.Dispose()
at System.Web.HttpRuntime.Dispose()
at System.Web.HttpRuntime.ReleaseResourcesAndUnloadAppDomain(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

User avatar
Member
Member
kentico_edwardh - 4/11/2011 1:40:57 PM
   
RE:Web application restarts continually
Hi,

lucyht wrote:
In fact the site I am trying to import is already running on the server under a different domain, this is just meant to be an upgrade to the latest hot fix and to .Net 4.0.


How did you upgrade the .Net 2.0 files to the .Net 4.0 files? The link below is a knowledge base article on updating .Net files.
Visual Studio Conversion


Are there any memory limitations on the Application Pool associated with the web app? Please check following properties of your application pool: Private Memory Limit (KB) and Virtual Memory Limit (KB) mentioned here:[url= objectmix.com/inetserver/356715-possible-limit-amount-memory-application-pool-u.html]Private Memory Limit[/url]

Also, please try to read through following Blog post article about possible causes of Hosting Environment exception message:
Shutdown Exception

Best Regards,
Eddie