Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • AJS 31 posts 212 karma points
    May 27, 2016 @ 01:13
    AJS
    0

    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 
    

    Any ideas about what would have caused this?

    I'm running version 7.2.8

    Thanks so much,

    Amanda

  • Ismael 71 posts 354 karma points
    May 27, 2016 @ 01:28
    Ismael
    0

    Could it be that Master.cshtml is attempting to reference the property you had deleted?

  • AJS 31 posts 212 karma points
    Jun 08, 2016 @ 20:18
    AJS
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft