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 view
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.
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 view
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!
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
is working on a reply...