I made a change to a document type (renamed a property and its alias, and added another property) and now a user control that calls node.ChildrenAsTable(“doctypealias”) is giving ‘Object reference not set to an instance of an object’. I’ve confirmed that node != null.
I’m using Umbraco 4.7.0. on a dedicated web server (full trust) running IIS7.
I’ve tried recycling app pool, restarting IIS, deleting umbraco.config, touching web.config, re-uploading the user control, republishing entire site. Nothing works.
To clarify, the user control gets the current node, and tries then to call ChildrenAsTable() on the current node. The current node’s children are pages of the doctype that I edited.
Please help!!
Have you tried republishing the node or republishing the entire site as this can sometimes help this issue where a doctype changes but the content doesn’t get republished (so there is a mismatch between the DB and the published XML file).