Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Quite simply, I can't install packages in Umbraco when running in Debug mode. This includes any of the starter kits when running the installer. However, if I run Umbraco under Release <compilation ... debug="false "... > then packages work and so do the starter kits if selected on install.
<compilation ... debug="false "... >
If I try and install a package the log shows this error:
HostingEnvironment initiated shutdown
HostingEnvironment caused shutdown
_shutDownStack= at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
at System.Web.HttpRuntime.ShutdownAppDomain(String stackTrace)
at System.Web.Configuration.HttpConfigurationSystem.OnConfigurationChanged(Object sender, InternalConfigEventArgs e)
at System.Configuration.Internal.InternalConfigRoot.OnConfigChanged(InternalConfigEventArgs e)
at System.Configuration.BaseConfigurationRecord.OnStreamChanged(String streamname)
at System.Web.Configuration.WebConfigurationHostFileChange.OnFileChanged(Object sender, FileChangeEvent e)
at System.Web.Util.WorkItem.CallCallbackWithAssert(WorkItemCallback callback)
at System.Web.Util.WorkItem.OnQueueUserWorkItemCompletion(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(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)
The packages download to the App_Data folder but aren't installed - the browser window refreshes.
The development set-up I'm using is MSVC 2015, with Umbraco created from an empty project and installed using Nuget (Install-Package UmbacoCms). F5, click text to add debug='true' to the web.config and configure to use with SQL CE.
(I've tested with LocalDB and SQL Server too). MSVC defaults to use IIS Express (I've tried IIS 10). So, it's pretty much a vanilla install of 7.6.3.
I don't think it's a file permission issue, as it all runs under my user account and I have full privileges. Besides why would Release work and Debug fail if that were the case?
To be honest I'm not sure when the issue started, I don't tend to play around with packages that often, and everything else "seems" to be working. I do have MSVC 2017 installed too and I recently installed some C++ Development tools. My windows edition is 14393.
This issue would seem to be related to these issues: https://our.umbraco.org/forum/getting-started/installing-umbraco/72398-hostingenvironment-initiated-shutdown (I've tried without Virus protection and that doesn't seem to make a difference.)
Frankly, I'm stumped. Help would be appreciated.
One thing I didn't mention above was that this behaviour was happening on all versions of Umbraco back as far as v7.5 - at which point I stopped testing them.
There was also an element of file permissions failure, like the package files couldn't be unzipped properly. It was all very unpleasant and flakey.
My best hunch as to the cause of the issue was that my development machine had become "confused" by having MSVC 2013, 2014, 2015 installed alongside a wide variety of Powershell and other language frameworks and toolkits.
Eventually I lost my patience: noting that the Umbraco installation guide only covers up to 2015 I tried uninstalling MSVC 2017 but that didn't resolve the issue. So I tried a fresh Windows 10 install with just MSVC 2015 and that, as you'd expect, worked perfectly.
I'll be slowly reapplying the development layers over the next few weeks and months, keeping careful backups, and will post back if I find a definite culprit, but at the moment I don't know what the cause was :(
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted