New Umbraco Installation - Object reference not set to an instance of an object. ERROR
Hi,
Im currently working through the Wrox Umbraco User Guide and have just done an installation using the simple kit and Green Skin and eveything seems to be working fine except for when I try and view the homepage it gives me the following error.
[NullReferenceException: Object reference not set to an instance of an object.]
umbraco.cms.businesslogic.macro.MacroModel..ctor(Macro m) +21
umbraco.macro..ctor(String alias) +344
umbraco.presentation.templateControls.Macro.CreateChildControls() +1319
System.Web.UI.Control.EnsureChildControls() +181
System.Web.UI.Control.InitRecursive(Control namingContainer) +132
System.Web.UI.Control.InitRecursive(Control namingContainer) +420
System.Web.UI.Control.InitRecursive(Control namingContainer) +420
System.Web.UI.Control.InitRecursive(Control namingContainer) +420
System.Web.UI.Control.InitRecursive(Control namingContainer) +420
System.Web.UI.Control.InitRecursive(Control namingContainer) +420
System.Web.UI.Control.InitRecursive(Control namingContainer) +420
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1969
If anyone would be able to help that would be great as I'd like to get learning more about Umbraco.
This is a known issue with the Simple Starter Kit, but luckily there's a simple fix. The error means that the template is referencing a Macro that doesn't exist. So you can either remove the macro or re-create it.
New Umbraco Installation - Object reference not set to an instance of an object. ERROR
Hi,
Im currently working through the Wrox Umbraco User Guide and have just done an installation using the simple kit and Green Skin and eveything seems to be working fine except for when I try and view the homepage it gives me the following error.
If anyone would be able to help that would be great as I'd like to get learning more about Umbraco.
Regards
Michael
Hi Michael,
This is a known issue with the Simple Starter Kit, but luckily there's a simple fix. The error means that the template is referencing a Macro that doesn't exist. So you can either remove the macro or re-create it.
There's a blog post explaining the fix here: http://www.carbonsoft.co.uk/articles/2012/07/umbraco-simple-starter-kit-object-not-set-error.aspx
HTH,
Tom
is working on a reply...