Can you tell us a bit more about your site setup? What version of Umbraco are you experiencing this on? Has there been made some custom code like a datatype that is being used on the home node that gives you this error?
Have you tried having a look at the umbracoLog table in the database to see if this contains any usefull information?
At / (Referred by: ): System.NullReferenceException: Object reference not set to an instance of an object. at ASP.masterpages_sitemaster_master.Page_Init(Object sender, EventArgs e) in g:\WebData\drivingfutures.com\masterpages\SiteMaster.master:line 8 at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
The easiest way to find out where the null reference is thrown is by debugging that method in Visual Studio which will only work if you have the website running on your local machine (IIS or IIS express) and attach the VS debugger. Would that work for you?
If you can't debug it, it's going to be a bit tougher though as there are a lot of properties that could be empty or missing, or missing subpages for example. If you have a working page, you might want to cross reference for missing properties/pages in the back office.
Object reference not set to an instance of an object.
I am getting this error on one of my home pages. I have 3 other home pages that are working fine...any thoughts?
Looks like an error that is thrown in a custom .NET user control which has a repeater to generate a navigation and fails to do so.
If this control is working for other pages, the issue is probably caused by data specific to this page.
Can you try to debug the code inside the NavRepeater_OnItemDataBound method or post it here?
Hi Michael
Can you tell us a bit more about your site setup? What version of Umbraco are you experiencing this on? Has there been made some custom code like a datatype that is being used on the home node that gives you this error?
Have you tried having a look at the umbracoLog table in the database to see if this contains any usefull information?
/Jan
Log Message
The site is using 4.5.2
Ok, so there's a lot going on there :-)
The easiest way to find out where the null reference is thrown is by debugging that method in Visual Studio which will only work if you have the website running on your local machine (IIS or IIS express) and attach the VS debugger. Would that work for you?
If you can't debug it, it's going to be a bit tougher though as there are a lot of properties that could be empty or missing, or missing subpages for example. If you have a working page, you might want to cross reference for missing properties/pages in the back office.
I got it...i just handled the null reference error better by putting the function into a try-catch block...
is working on a reply...