Copied to clipboard

Flag this post as spam?

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


  • Angelo Corleone 6 posts 115 karma points
    Feb 01, 2018 @ 00:58
    Angelo Corleone
    0

    Null reference exception while playing with the content editor

    Hello people!

    I'm trying to get familiar with Umbraco, I don't know how I broke the starter site but I remember just adding/deleting items in the Content tab. Now when I go to the site or run it from Visual Studio I get a null reference exception on the viewenter image description here

    I haven't changed anything on the backend code yet. I'm planning to use Umbraco for my friend's website and I want to be able to troubleshoot issues like these that an editor can easily get into. Tips on how to avoid common problems from an editor's perspective would be very welcome as well :)

    I can still login to the backoffice btw, at the moment I can't add a Products page after deleting the one that came with the starter site. The search box can't find the default products that were there before so I can't set the featured products.

    If it is of any help, the site is on IIS and using a db on SQL Server 2016.

    I don't want to redownload the starter site for now.

    Thanks in advance!

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Feb 02, 2018 @ 00:32
    Alex Skrypnyk
    100

    Hi Angelo

    Welcome to our forum! You need to run Models builder :)

    Go to developers section -> Models Builder tab -> Generate button

    Read more about models builder here:

    https://24days.in/umbraco-cms/2016/getting-started-with-modelsbuilder/

    https://github.com/zpqrtbnk/Zbu.ModelsBuilder/wiki/Umbraco.ModelsBuilder

    Alex

Please Sign in or register to post replies

Write your reply to:

Draft