Runtime error after deleting a property and adding a new one
Hi,
I went to delete a property from my Home document type and then I added a new one, but immediately after doing that, I got a runtime 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:
Line 1: @inherits Umbraco.Web.Mvc.UmbracoTemplatePage
Line 2: @{
Line 3: Layout = "Master.cshtml";
Line 4: }
Line 5:
Source File: d:\home\site\wwwroot\Views\Home.cshtml Line: 3
Unfortunately, the Master.cshtml was not referencing that property, but I seemed to solve the problem by exporting the Home document type and reimporting it back in. Don't know why that solved the problem, but it did.
Runtime error after deleting a property and adding a new one
Hi,
I went to delete a property from my Home document type and then I added a new one, but immediately after doing that, I got a runtime error.
Any ideas about what would have caused this?
I'm running version 7.2.8
Thanks so much,
Amanda
Could it be that Master.cshtml is attempting to reference the property you had deleted?
Thanks for your response Ismael.
Unfortunately, the Master.cshtml was not referencing that property, but I seemed to solve the problem by exporting the Home document type and reimporting it back in. Don't know why that solved the problem, but it did.
Thanks again for your comment.
is working on a reply...