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) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
umbraco.BasePages.BasePage.OnLoad(EventArgs e) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\businesslogic\BasePages\BasePage.cs:287
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
Any pointers are much appredciated.
I cannot open the Template folder in settings either.
Version is umbraco v 4.0.4.2 (Assembly version: 1.0.3811.17115)
There is no "Team City" installed as far as I can see.
I saw your other post about the templates not displaying. It sounds like you might have an invalid template name.
I've ran into this a couple of times, when you use an invalid character in the template's name, (for me it was a colon), then it can completely bomb your templates/doc-types.
I did manage to resolve this problem, but required a little tweaking in the database directly.
Depending on how comfortable you are with database ... try to find the offending row in both the "cmsTemplate" and "umbracoNode" tables. Then either correct the name/text ... or delete the row (as a very last resort!) Remember to back-up your database first!!!
Thanks for the reply. There are no invalid template names. I hope someone has a tip soon since we are hosed now. I don't even know where to begin trying to build this stuff. Do you have any idea of what this "Team City"stuff is?
The "TeamCity" path is from the build-server that compiles the Umbraco code before a release. It's nothing to do with your Umbraco install. Don't worry about that.
From your exception/stack-trace, the last call was "get_MasterPageFile" ... which suggests that something isn't quite right with the actual filename of the MasterPage on the disk?
Difficult to suggest any further without knowing more about how your templates are set-up.
Help with Error
I get this when I try to open any Document Type:
Any pointers are much appredciated.
I cannot open the Template folder in settings either.
Version is umbraco v 4.0.4.2 (Assembly version: 1.0.3811.17115)
There is no "Team City" installed as far as I can see.
Thanks!
Hi Robert,
I saw your other post about the templates not displaying. It sounds like you might have an invalid template name.
I've ran into this a couple of times, when you use an invalid character in the template's name, (for me it was a colon), then it can completely bomb your templates/doc-types.
I did manage to resolve this problem, but required a little tweaking in the database directly.
Depending on how comfortable you are with database ... try to find the offending row in both the "cmsTemplate" and "umbracoNode" tables. Then either correct the name/text ... or delete the row (as a very last resort!) Remember to back-up your database first!!!
Cheers, Lee.
Thanks for the reply. There are no invalid template names. I hope someone has a tip soon since we are hosed now. I don't even know where to begin trying to build this stuff. Do you have any idea of what this "Team City"stuff is?
Hi Robert,
The "TeamCity" path is from the build-server that compiles the Umbraco code before a release. It's nothing to do with your Umbraco install. Don't worry about that.
From your exception/stack-trace, the last call was "get_MasterPageFile" ... which suggests that something isn't quite right with the actual filename of the MasterPage on the disk?
Difficult to suggest any further without knowing more about how your templates are set-up.
Cheers, Lee.
Thanks. What's the best way for me to share that info with you?
is working on a reply...