Object reference not set to an instance of an object.
Server Error in '/' Application.
Hi guys,
Object reference not set to an instance of an
object.
Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.
Exception Details: System.NullReferenceException:
Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] umbraco.cms.businesslogic.template.Template.get_MasterPageFile() in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\template\Template.cs:37 umbraco.cms.businesslogic.template.Template.getMasterPageContent() in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\template\Template.cs:150 umbraco.cms.businesslogic.template.Template.setupTemplate() in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\template\Template.cs:138 umbraco.cms.businesslogic.template.Template..ctor(Guid id) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\template\Template.cs:62 umbraco.cms.businesslogic.template.Template.GetAllAsList() in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\cms\businesslogic\template\Template.cs:332 umbraco.settings.EditContentTypeNew.bindTemplates() in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\presentation\umbraco\settings\EditNodeTypeNew.aspx.cs:40 umbraco.settings.EditContentTypeNew.Page_Load(Object sender, EventArgs e) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\presentation\umbraco\settings\EditNodeTypeNew.aspx.cs:26 System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +13 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +43 System.Web.UI.Control.On
I recently got this when accidentially creating a Template with a duplicate name, then disallowed to delete it in the UI, deleted it in the DB - presto! Something clearly representing the above.
DB looks like it should be able to figure it out, but there are depths I don't understand to it...
Object reference not set to an instance of an object.
Server Error in '/' Application.
Hi guys,
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Plz give the solution of that problem
anyone dont solve this problem........
okkkk
Hello,
Could you please give more details on your problem ?
- Which version (exactly) of Umbraco are you using ?
- When does this error occurs ? When editing a template ? When trying to view a page on the frontend ?
hi Thomas
-I am useing Umbraco 4 beta
- This error occurs when we click any document types child node like as Document types/Runway Homepage or Runway TextPage and so on...............
I'm having the same issue in Umbraco 4.5.2
I recently got this when accidentially creating a Template with a duplicate name, then disallowed to delete it in the UI, deleted it in the DB - presto! Something clearly representing the above.
DB looks like it should be able to figure it out, but there are depths I don't understand to it...
Hi all,
I know it's a bit late, for all people searching for the solution:
This problem occurs when you delete the template in the database from the template table.
apparently, Umbraco stores a "node" or somethin inside the umbracoNode table. If you delete the templates in this table, umbraco should work again.
Thank you so much It was my solution. :)
is working on a reply...