Object reference not set to an instance of an object.
Hi, until yesterday we had a perfect working umbraco 4.0.1 installation, but
today, when apparently nothing has changed, we are getting errors whenever we
try to edit content. For Content, Members and DataTypes the error is the
following:
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) +780
umbraco.cms.presentation.editContent.OnInit(EventArgs e) +368
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.3082; ASP.NET Version:2.0.50727.3082
For the DataTypes we get the following error:
Server Error in '/' Application.
No dataType with id = 3033 found
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 dataType with id = 3033 found
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.
After looking at the DB, there was no node with the id=3033 in the cmsDataType table. However, this node existed in the table umbracoNodes. Once deleted from there, a quick restart restored the Admin functionality.
By the way, the complete separation of BackEnd and FrontEnd with the cache, node factory etc is awesome. Even though the admin has not worked all day, the public site has been available and functioning perfectly. Great job
I have a follow-up question regarding the deletion of the node in the database table umbracoNodes. Doesn't this mean that all content that is stored using this datatype is deleted?
I had the same problems with my old umbraco (< 4.7.0) installation.
Your solution worked perfekt. I made a backup of the database and deleted the missing "nodeId" in the table "umbracoNode". After this correction the administration site worked without any problems.
Hopefully this bug is fixed in the 4.7.0 release, because I want to upgrade today :-)
Object reference not set to an instance of an object.
Hi, until yesterday we had a perfect working umbraco 4.0.1 installation, but today, when apparently nothing has changed, we are getting errors whenever we try to edit content. For Content, Members and DataTypes the error is the following:
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:
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
For the DataTypes we get the following error:
Server Error in '/' Application.
No dataType with id = 3033 found
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 dataType with id = 3033 found
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.3082; ASP.NET Version:2.0.50727.3082
I am sure that I have to change something in the database, but I just have no idea what.
Thanks
After looking at the DB, there was no node with the id=3033 in the cmsDataType table. However, this node existed in the table umbracoNodes. Once deleted from there, a quick restart restored the Admin functionality.
By the way, the complete separation of BackEnd and FrontEnd with the cache, node factory etc is awesome. Even though the admin has not worked all day, the public site has been available and functioning perfectly. Great job
Hi david!
I have a follow-up question regarding the deletion of the node in the database table umbracoNodes. Doesn't this mean that all content that is stored using this datatype is deleted?
We are in a similar situation (topic found here: http://our.umbraco.org/forum/ourumb-dev-forum/bugs/4965-Data-type-not-found) and the error has occured on a live site with lots of content, so we need to be really careful not to mess things up.
/Thomas Kahn
Hi all
@david:
I had the same problems with my old umbraco (< 4.7.0) installation.
Your solution worked perfekt. I made a backup of the database and deleted the missing "nodeId" in the table "umbracoNode". After this correction the administration site worked without any problems.
Hopefully this bug is fixed in the 4.7.0 release, because I want to upgrade today :-)
Greetz
Michael
Hi There
I also have this problem in a umbraco v 4.0.2.1, and have the same error both in content and in datatypes.
My VERY simple solution was to: Recycle the IIS pool. - Thats it.
is working on a reply...