I have an umbraco 4.5.2 site I've developed with .net 4.0 and sql server 2008 and now I want to create a duplicate.
To do this I did the following: 1) created a copy of my code base 2) backed up db, restored it to the same sql server instance under a different name 3) changed all the config files to point to this new db 4) deleted umbraco.config
When I run the project I can login to the umbraco backend and see all the content...good I thought, all done. But when I click on a page to view it in the backend I get this exception:
[NullReferenceException: Object reference not set to an instance of an object.] umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) +257 umbraco.controls.ContentControl.CreateChildControls() +939 System.Web.UI.Control.EnsureChildControls() +102 umbraco.controls.ContentControl.OnInit(EventArgs e) +92 System.Web.UI.Control.InitRecursive(Control namingContainer) +140 System.Web.UI.Control.AddedControl(Control control, Int32 index) +197 System.Web.UI.ControlCollection.Add(Control child) +79 umbraco.cms.presentation.editContent.OnInit(EventArgs e) +1460 System.Web.UI.Control.InitRecursive(Control namingContainer) +140 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480
Furthermore if I try to create a new document, it shows me the correct document types available, but then get this error:
I thought it couldn't hurt deleting it incase there was some kind of caching issue. I've also done a re-publish entire site with no effect.
I'm running this on my local machine via VS 2010 cassini web server so no app pool to recycle. I've killed the cassini server instance and started a new one though which has no effect.
Problems duplicating an umbraco instance
I have an umbraco 4.5.2 site I've developed with .net 4.0 and sql server 2008 and now I want to create a duplicate.
To do this I did the following:
1) created a copy of my code base
2) backed up db, restored it to the same sql server instance under a different name
3) changed all the config files to point to this new db
4) deleted umbraco.config
When I run the project I can login to the umbraco backend and see all the content...good I thought, all done. But when I click on a page to view it in the backend I get this exception:
[NullReferenceException: Object reference not set to an instance of an object.] umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) +257 umbraco.controls.ContentControl.CreateChildControls() +939
System.Web.UI.Control.EnsureChildControls() +102
umbraco.controls.ContentControl.OnInit(EventArgs e) +92
System.Web.UI.Control.InitRecursive(Control namingContainer) +140 System.Web.UI.Control.AddedControl(Control control, Int32 index) +197 System.Web.UI.ControlCollection.Add(Control child) +79
umbraco.cms.presentation.editContent.OnInit(EventArgs e) +1460
System.Web.UI.Control.InitRecursive(Control namingContainer) +140 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
I'm baffled as to what's going on...can anybody tell me where I've gone wrong?
why are you deleting umbraco.config anyway?
try republishing entire site in backoffice / recycling app pool
I thought it couldn't hurt deleting it incase there was some kind of caching issue. I've also done a re-publish entire site with no effect.
I'm running this on my local machine via VS 2010 cassini web server so no app pool to recycle. I've killed the cassini server instance and started a new one though which has no effect.
is working on a reply...