When trying to view the doc type in production site and it throwing below error and if we try to view template folder that also empty. The stage site working fine both site hosted in azure webapp and have same code.
Looks like issue in the template.Even we tried to check any issue template name but all looks good.
An unhandled exception occurred
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at umbraco.cms.businesslogic.template.ViewHelper.ViewPath(String alias)
at umbraco.cms.businesslogic.template.ViewHelper.GetFilePath(Template t)
at umbraco.cms.businesslogic.template.Template.setupNode()
at umbraco.cms.businesslogic.CMSNode..ctor(Guid uniqueID)
at umbraco.cms.businesslogic.template.Template.GetAllAsList()
at umbraco.settings.EditContentTypeNew.BindTemplates()
at umbraco.settings.EditContentTypeNew.PageLoad(Object sender, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at umbraco.BasePages.BasePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.AsyncPageProcessRequestBeforeAsyncPointCancellableCallback(Object state)
at System.Web.HttpContext.InvokeCancellableCallback(WaitCallback callback, Object state)
at System.Web.UI.Page.LegacyAsyncPageBeginProcessRequest(HttpContext context, AsyncCallback callback, Object extraData)
at System.Web.UI.Page.AsyncPageBeginProcessRequest(HttpContext context, AsyncCallback callback, Object extraData)
at ASP.umbracosettingseditnodetypenewaspx.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object data) in d:\local\Temporary ASP.NET
How to resolve template folder empty issue?
Hi Team,
When trying to view the doc type in production site and it throwing below error and if we try to view template folder that also empty. The stage site working fine both site hosted in azure webapp and have same code.
Looks like issue in the template.Even we tried to check any issue template name but all looks good.
An unhandled exception occurred System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at umbraco.cms.businesslogic.template.ViewHelper.ViewPath(String alias) at umbraco.cms.businesslogic.template.ViewHelper.GetFilePath(Template t) at umbraco.cms.businesslogic.template.Template.setupNode() at umbraco.cms.businesslogic.CMSNode..ctor(Guid uniqueID) at umbraco.cms.businesslogic.template.Template.GetAllAsList() at umbraco.settings.EditContentTypeNew.BindTemplates() at umbraco.settings.EditContentTypeNew.PageLoad(Object sender, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at umbraco.BasePages.BasePage.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.AsyncPageProcessRequestBeforeAsyncPointCancellableCallback(Object state) at System.Web.HttpContext.InvokeCancellableCallback(WaitCallback callback, Object state) at System.Web.UI.Page.LegacyAsyncPageBeginProcessRequest(HttpContext context, AsyncCallback callback, Object extraData) at System.Web.UI.Page.AsyncPageBeginProcessRequest(HttpContext context, AsyncCallback callback, Object extraData) at ASP.umbracosettingseditnodetypenewaspx.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object data) in d:\local\Temporary ASP.NET
Please help us to resolve the issue.
Advance thanks.
is working on a reply...