Hello friends, I’ve “inherited” an umbraco site a week ago and I don’t have any umbraco experience and no one to help me with it. The site looks ok at the frontend but at the backend has problems that I don’t know how to solve. First of all, when I click at the “homepage” – the top of the tree at the content tab – I get this error:
Server Error in '/' Application. ________________________________________ Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[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) +781 umbraco.cms.presentation.editContent.OnInit(EventArgs e) +367 System.Web.UI.Control.InitRecursive(Control namingContainer) +333 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
________________________________________ Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634
I tried to republish the whole site and I got the following error:
Server Error in '/' Application. ________________________________________ No node exists with id '1040' Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: No node exists with id '1040'
Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
________________________________________ Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634
I’ve googled my problem and I tried re-indexing with no results. (I’ve tried recycling the app pool, even restarting the IIS and eventually the webserver with no results also) Then, I checked the db for the node with id 1040 and found 3 records at the PropertyType table, but I’m not sure what to do with them. The site is a production site and I have to update the homepage. I did some other content updates and I didn’t have any issues, except from the related links node – is this the correct term?? – where when you hit the internal link the popup with the node-tree doesn’t show, and the same thing happened with the media content picker. (I’m so clueless that I’m not sure if this is related to my biggest problem described above) I hope that whoever is reading understands the issue since I’m not familiar with the umbraco terminology. He/she has my apologies but I’m a newbie. My umbraco installation details: umbraco v 4.0.3 (Assembly version: 1.0.3625.27276), IIS v6. My apologies for the long post. Thanks in advance for reading, and for any help that may come. krystianna
I have seen this before usually related to property being removed from a document type. Can you goto settings and tell us what properties you have for the home page document type.
I went to Settings and clicked the homepage document type and got a similar error:
Server Error in '/' Application.
No node exists with id '1040'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: No node exists with id '1040'
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
I think I know which is the property now, thank you! the problem now is that I’m not sure how to implement the fix you suggested. I don’t know how to make a usercontrol as a dashboard control, like the post suggests. I will try later and post the results. I really can’t thank you enough for the response. It is always comforting to find some help when you are frustrated and confused. :)
Create a .net user control and in the page load add the code as per Richards blog post obviously updating to the field aliases that are being a problem and also targetting home page only. Copy the dll to the bin directory and the usercontrol to the usercontrols directory. Next update your dashboard.config file which is in config directory. You will need to add line like
<section>
<areas>
<area>default</area>
<area>content</area>
</areas>
<tab caption="Welcome">
<control>/usercontrols/whatever.ascx</control>
</tab>
</section>
where whatever.ascx is the name of your user control. When you next login then it will run that user control in the content area. After its done take that entry out so that it does not keep on running everytime someone logs in.
I solved my problem temporarily by tweaking the homepage template instead of updating the content (I was lucky since only this page is using this template), and I will try your solution when I’ll find the time to clone the site and recreate the error in a dev environment, just to be in the safe side :). I’ll post feedback asap. Thank you very much for your time and efforts! Best regards, krystianna
No node exists with id '1040' -- newbie
Hello friends,
I’ve “inherited” an umbraco site a week ago and I don’t have any umbraco experience and no one to help me with it. The site looks ok at the frontend but at the backend has problems that I don’t know how to solve. First of all, when I click at the “homepage” – the top of the tree at the content tab – I get this error:
Server Error in '/' Application.
________________________________________
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[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) +781
umbraco.cms.presentation.editContent.OnInit(EventArgs e) +367
System.Web.UI.Control.InitRecursive(Control namingContainer) +333
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378
________________________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634
I tried to republish the whole site and I got the following error:
Server Error in '/' Application.
________________________________________
No node exists with id '1040'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: No node exists with id '1040'
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: No node exists with id '1040']
umbraco.cms.businesslogic.CMSNode.setupNode() +459
umbraco.cms.businesslogic.CMSNode..ctor(Int32 Id) +25
umbraco.cms.businesslogic.datatype.DataTypeDefinition.GetDataTypeDefinition(Int32 id) +88
umbraco.cms.businesslogic.property.Property.MakeNew(PropertyType pt, Content c, Guid versionId) +311
umbraco.cms.businesslogic.Content.createNewVersion() +356
umbraco.cms.businesslogic.web.Document.PublishWithResult(User u) +133
umbraco.dialogs.publish.Page_Load(Object sender, EventArgs e) +1883
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
umbraco.BasePages.BasePage.OnLoad(EventArgs e) +15
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
________________________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634
I’ve googled my problem and I tried re-indexing with no results. (I’ve tried recycling the app pool, even restarting the IIS and eventually the webserver with no results also) Then, I checked the db for the node with id 1040 and found 3 records at the PropertyType table, but I’m not sure what to do with them.
The site is a production site and I have to update the homepage. I did some other content updates and I didn’t have any issues, except from the related links node – is this the correct term?? – where when you hit the internal link the popup with the node-tree doesn’t show, and the same thing happened with the media content picker. (I’m so clueless that I’m not sure if this is related to my biggest problem described above)
I hope that whoever is reading understands the issue since I’m not familiar with the umbraco terminology. He/she has my apologies but I’m a newbie.
My umbraco installation details: umbraco v 4.0.3 (Assembly version: 1.0.3625.27276), IIS v6.
My apologies for the long post. Thanks in advance for reading, and for any help that may come.
krystianna
krystianna,
I have seen this before usually related to property being removed from a document type. Can you goto settings and tell us what properties you have for the home page document type.
Regards
Ismail
Ismail thank you for the quick response,
I went to Settings and clicked the homepage document type and got a similar error:
Server Error in '/' Application.
No node exists with id '1040'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: No node exists with id '1040'
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3634
Is there any other way to find this information you are asking?
thank you,
krystianna
krystianna,
This looks like http://www.richardsoeteman.net/2009/10/27/FixObjectReferenceNotSetErrorAfterAddingOrDeletingADocumentProperty.aspx there is suggestion there on how to fix but you will need to know the alias of the property that is causing the issue.
Regards
Ismail
Ismail,
I've already read this but I don't know what property is causing the issue nor how to find it out. Any other thoughts?
i can't thank you enough for helping me :),
krystianna
Try the following
SELECT dbo.cmsContentType.alias, dbo.cmsPropertyType.Alias as propertyAlias , dbo.cmsPropertyType.Name
FROM dbo.cmsContentType INNER JOIN
dbo.umbracoNode ON dbo.cmsContentType.nodeId = dbo.umbracoNode.id INNER JOIN
dbo.cmsPropertyType ON dbo.cmsContentType.nodeId = dbo.cmsPropertyType.contentTypeId
where dbo.cmsContentType.alias='homePage'
Replace the homePage with whatever your homePage alias is
ok Ismail,
I think I know which is the property now, thank you! the problem now is that I’m not sure how to implement the fix you suggested. I don’t know how to make a usercontrol as a dashboard control, like the post suggests. I will try later and post the results. I really can’t thank you enough for the response. It is always comforting to find some help when you are frustrated and confused. :)
krystianna,
Create a .net user control and in the page load add the code as per Richards blog post obviously updating to the field aliases that are being a problem and also targetting home page only. Copy the dll to the bin directory and the usercontrol to the usercontrols directory. Next update your dashboard.config file which is in config directory. You will need to add line like
<section>
<areas>
<area>default</area>
<area>content</area>
</areas>
<tab caption="Welcome">
<control>/usercontrols/whatever.ascx</control>
</tab>
</section>
where whatever.ascx is the name of your user control. When you next login then it will run that user control in the content area. After its done take that entry out so that it does not keep on running everytime someone logs in.
Regards
Ismail
hi Ismail,
I solved my problem temporarily by tweaking the homepage template instead of updating the content (I was lucky since only this page is using this template), and I will try your solution when I’ll find the time to clone the site and recreate the error in a dev environment, just to be in the safe side :). I’ll post feedback asap.
Thank you very much for your time and efforts!
Best regards,
krystianna
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.