I upgraded a perfectly working 1.5.0 site to 1.5.2 tonight but it failes with error 500 : The container has not been initialized!
The properties.config was copied from the previous setup, web config is the standard one.
Logging is enabled (every level set to DEBUG) and gives this as only information
2009-02-11 22:24:04,744 [7] ERROR Cuyahoga.Web.Error [(null)] <(null)> - An unexpected error occured
System.InvalidOperationException: The container has not been initialized!
at Cuyahoga.Core.Util.IoC.get_Container()
at Cuyahoga.Web.Global.get_Container()
at Cuyahoga.Web.Util.ContainerAccessorUtil.GetContainer()
at Cuyahoga.Web.HttpModules.CoreRepositoryModule.Context_BeginRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I cannot reach the admin or the upgrade pages. "Touching" the web.config doesn't help.
Any clue as to what is going wrong?
Could you turn on logging in web.config to see what's happening?
The main difference with 1.5.0 is that all modules are loaded at application startup instead of being lazily loaded at the first request. Do you have any custom modules? Also check the modules page in the admin to see which ones are installed and activated.
Hi Martijn,
logging is already switched on and the result is what I put in my first post. I'll check the modules tonight (don't have the login of that site with me at the moment) but if I remember correctly, it's only using the standard modules.
btw, I'm the same guy as above. I realised I have two logins to this forum and only have this login information readily available where I am now. Guess I'll need to consolidate my accounts and centralize the information...
Ah yes, should have noticed this comes form the log...
Isn't there another exception in the log before this one? Or try to set the log level to INFO or DEBUG instead of ERROR. Then you can see in the logs which modules are loaded and maybe which one fails.
there was no other exception in the log before that one and all log levels were set to DEBUG.
I rolled back to the 1.5.0 site (copied the files back via ftp) and looked at the modules. Only StaticHTML, User and UserProfile were in use, so I uninstalled Articles, Downloads, Flash, Forum and RemoteContent (btw, there's an error in the uninstall script for that one : it refers to Downloads instead of RemoteContent).
Tried to upgrade again, got the same error. Since the content of the database was still not touched (versions were still pointing to 1.5.0) I tried to access the upgrade page directly with customErrors switched off and got a nice error message :
[XmlProcessorException: Required configuration property tempDir not found]
...
This pointed me towards the content of properties.config which in 1.5.2 has an extra element. I added the tempDir element and have a working site again!
Thought I'd share this so anyone who makes the same mistake as I did, will find the solution quickly.
Hans
The bad news is that all the content of the site is now lost :-(
All the nodes are still there, but the content is simply gone. I'll have to talk to the provider to get a backup restored and do the whole upgrade again.
martijnbThe main difference with 1.5.0 is that all modules are loaded at application startup instead of being lazily loaded at the first request. Do you have any custom modules? Also check the modules page in the admin to see which ones are installed and activated.
This cause me a little trouble because if I update a module on production I have to run a iisreset to see module loaded.. may be could module be laoded after install?
Marco
Thanks eylenh for the heads up on the tempDir error. I got the same error when transfering a site over to a new server. I don't know how the site was working without the tag but it broke when set up on the new server. Adding the tempDir tag back in the properties.config fixed it.