NullReferenceException after upgrading to 3.0.5 Options
acl
Posted: Tuesday, May 06, 2008 6:04:16 AM
Rank: Devotee

Joined: 12/15/2006
Posts: 40
Hi,
I just upgrade from 3.0.2 to 3.0.5 and I'm getting this error on a couple of my pages when I click to edit them:
Quote:

At /umbraco/editContent.aspx?id=1363 (Refered by: http://www.strattonfinance.com.au/umbraco/umbraco.aspx): System.NullReferenceException: Object reference not set to an instance of an object.
at umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption)
at umbraco.controls.ContentControl..ctor(Content c, publishModes CanPublish, String Id)
at umbraco.cms.presentation.editContent.OnInit(EventArgs e)
at System.Web.UI.Adapters.ControlAdapter.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


I deployed the bin, umbraco and umbracoClient directories as per the instructions on Codeplex. I also changed the umbracoSettings.config file. I ran the upgrade wizard on the dev server, although it didn't appear to do anything.

I've downloaded the source code for umbraco to try and debug, but the exception doesn't give me a line number and the "addControlNew" method is quite long.

Any ideas?
kalpa
Posted: Tuesday, May 06, 2008 6:57:21 AM

Rank: Fanatic

Joined: 7/19/2006
Posts: 492
Location: Göteborg, Sweden
Hi Acl! Did you also remember to empty your browser cache? I think that the exception might indicate that there's something wrong with the locally cached copy of a control... Just a wild guess...

// ;) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
acl
Posted: Tuesday, May 06, 2008 8:10:59 AM
Rank: Devotee

Joined: 12/15/2006
Posts: 40
Hi, sorry I had cleared my cache. That reminded me to clear the /data/umbraco.config file as well, just in case, but the problem still persists.
Simm
Posted: Saturday, August 09, 2008 2:31:29 AM

Rank: Fanatic

Joined: 7/22/2006
Posts: 255
Location: Randers, Denmark
I've encountered this error with several 3.0.5-installations also... Anyone got a fix for that?


[NullReferenceException: Object reference not set to an instance of an object.]
umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) +54
umbraco.controls.ContentControl..ctor(Content c, publishModes CanPublish, String Id) +734
umbraco.cms.presentation.editContent.OnInit(EventArgs e) +402
System.Web.UI.Control.InitRecursive(Control namingContainer) +321
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +834

Update: Hm.. fixing permissions on the bin-folder seems to have worked...


Best Regards
Simon

Simm.dk - My base on the web - proud Umbracian since 2.0 Beta
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.