i am upgrading from dnn 4.9.3 to 5.1.4. and I also ran into this error ....
Exception Details: System.InvalidOperationException: Cannot register or retrieve components until ComponentFactory.Container is set
Line 81:
Line 82: ' all of the logic which was previously in Application_Start was moved to Init() in order to support IIS7 integrated pipeline mode ( which no longer provides access to HTTP context within Application_Start )
Line 83: Initialize.Init(app)
Line 84:
Line 85: ' run schedule if in Request mode
[InvalidOperationException: Cannot register or retrieve components until ComponentFactory.Container is set]DotNetNuke.ComponentModel.ComponentFactory.VerifyContainer() +57
DotNetNuke.ComponentModel.ComponentFactory.GetComponent() +12
DotNetNuke.Common.Globals.GetStatus() +62
DotNetNuke.Common.Initialize.InitializeApp(HttpApplication app) +424
DotNetNuke.Common.Initialize.Init(HttpApplication app) +152
DotNetNuke.Common.Global.Global_BeginRequest(Object sender, EventArgs e) in C:\IQSys\iqDNN\App_Code\Global.asax.vb:83
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
For me, it turned out that the AssemblyInfo.vb and Global.asax.vb did not upgrade ! In my newly upgraded bin, In the AssemblyInfo.vb , there is a line that said ....
<Assembly: AssemblyVersion("4.9.3.21")>
I should have had the one that says .....
<Assembly: AssemblyVersion("5.1.4.3")>
So, what happened here ? From doing some googling, turns out that when I unzipped my DotNetNuke_Community_05.01.04_Upgrade.Zip, I didnt know that I had to Unblock the zip file BEFORE unzipping in order to get the right Assembly.vb and Global.asax.vb files.
I never ran into this one anything. But I looked in the folder where I unzipped the upgrade when I didnt Unblock the zip, and right clicked on the AssemblyInfo.vb, and instead of seeing properties, It tried to run a program.
I went to the zip file, right clicked and Unblocked the zip (there was a button there to Unblock, once I unblocked it, the button disappeared). I unzipped the zip to another directory and I right clicked on the AssemblyInfo.vb and it gave me the option to "Open with", like I expected to see.
I replaced the Assembly.vb and Global.asax.vb in my newly upgraded bin with the ones with the correct Assembly.vb version statement, did a rebuild and my DNN page came up.
What I found from googling was that XP does this ?, and, it may have a problem (an official Microsoft Bug). If you dont see the Unblock, you may have to email the zip to yourself and download it again. Thats what I read anyway.
Intrestingly, and just FYI, the total file count for an unblocked unzipped folder was 2 files different than the blocked unzipped folder. But, its the Blocked zip that unzips and shows 2 extra files. These two files are the Assembly.vb and Global.asax.vb in a different format ?