Error "Object reference not set to an instance of an object" in entire umbraco admin
Hi everyone,
We have a this problem in our production environment: created a page, set it to publish/unpublish for certain dates, and when the date arrived* an "Object reference not set to an instance of an object" error is thrown in the whole umbraco admin backend. This means we cannot create, view or edit any page!
We are working with umbraco 4.0.3, IIS 7.5 and SQL Server 2008 EE. We use it "out-of-the-box" without editing the source code or anything, since we don't have umbraco developers, so rebuilding is risky.
Restarting the site from IIS did not fix it (just the site, not the entire service).
*Note: we're not sure if this happened when the date arrived or right after saving the page. It was Friday night and we discovered it after the weekend.
Any suggestions?
- Event Viewer stacktrace is this:
-
EventData
3005
An unhandled exception has occurred.
3/29/2010 11:13:28 AM
3/29/2010 2:13:28 PM
69337c2cde554689b510dd9a55afb1f0
25672
31
0
/LM/W3SVC/6/ROOT-1-129142859889741208
Full
/
E:\Sities\ProdSite\
MISHPSW002
9736
w3wp.exe
NT AUTHORITY\NETWORK SERVICE
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.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Hard to find what's causing the site to go down. But probably first focus on getting it up and running again.
Can you perform a application pool recycling (which is different from restarting the iis web site) and see if that resurrects the site? Also, recheck permissions on the site to see if it makes any difference. From what is found in the event log, the network service seems to be the app pool owner, so make sure it has the right permissions set.
Thank you Dirk for the effort on trying to figure this out.
We edited the web.config to force umbraco to recompile, and it worked... though we couldn't reproduce the error in a testing environment. Afted copying the entire site, everything worked fine. Even publish/unpublish.
Error "Object reference not set to an instance of an object" in entire umbraco admin
Hi everyone,
We have a this problem in our production environment: created a page, set it to publish/unpublish for certain dates, and when the date arrived* an "Object reference not set to an instance of an object" error is thrown in the whole umbraco admin backend. This means we cannot create, view or edit any page!
We are working with umbraco 4.0.3, IIS 7.5 and SQL Server 2008 EE. We use it "out-of-the-box" without editing the source code or anything, since we don't have umbraco developers, so rebuilding is risky.
Restarting the site from IIS did not fix it (just the site, not the entire service).
*Note: we're not sure if this happened when the date arrived or right after saving the page. It was Friday night and we discovered it after the weekend.
Any suggestions?
- Event Viewer stacktrace is this:
-
EventData
3005
An unhandled exception has occurred.
3/29/2010 11:13:28 AM
3/29/2010 2:13:28 PM
69337c2cde554689b510dd9a55afb1f0
25672
31
0
/LM/W3SVC/6/ROOT-1-129142859889741208
Full
/
E:\Sities\ProdSite\
MISHPSW002
9736
w3wp.exe
NT AUTHORITY\NETWORK SERVICE
NullReferenceException
Object reference not set to an instance of an object.
http://www.xxxxxxx.xxx/umbraco/editContent.aspx?id=1070
/umbraco/editContent.aspx
10.2.3.42
False
NT AUTHORITY\NETWORK SERVICE
10
NT AUTHORITY\NETWORK SERVICE
False
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.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Hard to find what's causing the site to go down. But probably first focus on getting it up and running again.
Can you perform a application pool recycling (which is different from restarting the iis web site) and see if that resurrects the site? Also, recheck permissions on the site to see if it makes any difference. From what is found in the event log, the network service seems to be the app pool owner, so make sure it has the right permissions set.
Hope this helps (a bit)
Cheers,
/Dirk
Thank you Dirk for the effort on trying to figure this out.
We edited the web.config to force umbraco to recompile, and it worked... though we couldn't reproduce the error in a testing environment. Afted copying the entire site, everything worked fine. Even publish/unpublish.
Wierd...
Cheers,
Nico.
is working on a reply...