Object reference not set to an instance of an object.
Server Error in '/umbraco/build' Application.
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.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) +1953
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225
Just before xPath query (False, '/root/* [@urlName = "home"] | /root/*/* [@urlName = "home"]')
0.141425446530215
0.000029
umbracoRequestHandler
pageXPathQueryStart: '/root'
0.14144144018304
0.000016
umbracoRequestHandler
Adding to cache... ('/home.aspx')
0.141587478296823
0.000146
umbracoRequestHandler
After xPath query
0.141611364014141
0.000024
umbracoRequestHandler
Access checking started
0.141649217987202
0.000038
umbracoRequestHandler
Page not protected
0.141675757673112
0.000027
umbracoRequestHandler
Access checking ended
0.141691402119543
0.000016
umbracoInit
Done handling request
0.141707744978761
0.000016
umbracoPage
Element loaded: bodyText
0.320586554995118
0.178879
umbracoPage
Element loaded: siteName
0.320691386754462
0.000105
umbracoPage
Element loaded: cEOsHobbies
0.320740834379789
0.000049
umbracoPage
Element loaded: siteDescription
0.320787069306295
0.000046
umbracoPage
Element loaded: summery
0.32082736772411
0.000040
umbracoPage
Pagedata loaded for Home (ID: 1065)
0.320857539156513
0.000030
umbracoPage
Looking up skin information
0.32093457408693
0.000077
aspx.page
End PreInit
0.561617677665737
0.240683
aspx.page
Begin Init
0.561701766565304
0.000084
item
Start parsing 'pageName'
0.604154787829179
0.042453
item
Done parsing 'pageName'
0.604966413329068
0.000812
item.recursive
Item loaded from 1065
0.60500636254049
0.000040
item
Start parsing 'siteName'
0.605473530853782
0.000467
item
Done parsing 'siteName'
0.605529334035471
0.000056
Unhandled Execution Error
Object reference not set to an instance of an object. at umbraco.cms.businesslogic.macro.MacroModel..ctor(Macro m) at umbraco.macro..ctor(String alias) at umbraco.presentation.templateControls.Macro.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() 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.Control.InitRecursive(Control namingContainer) 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)
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Response Headers Collection
Name
Value
X-AspNet-Version
4.0.30319
Cache-Control
private
Content-Type
text/html
Form Collection
Name
Value
Querystring Collection
Name
Value
Server Variables
Name
Value
ALL_HTTP
HTTP_CONNECTION:Keep-Alive
HTTP_ACCEPT:*/* HTTP_ACCEPT_ENCODING:gzip, deflate
HTTP_ACCEPT_LANGUAGE:en-US
HTTP_COOKIE:UMB_UCONTEXT=4adb13eb-832f-451a-8b4a-97ee9426fce3; UMB_UPDCHK=1; ASP.NET_SessionId=bf4r33d2xlgt4uzpvzn2xh2c
HTTP_HOST:localhost
HTTP_REFERER:http://localhost/umbraco/build/umbraco/editContent.aspx?id=1065
HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
ALL_RAW
Connection: Keep-Alive
Accept: */* Accept-Encoding: gzip, deflate Accept-Language: en-US
Cookie: UMB_UCONTEXT=4adb13eb-832f-451a-8b4a-97ee9426fce3; UMB_UPDCHK=1; ASP.NET_SessionId=bf4r33d2xlgt4uzpvzn2xh2c
Host: localhost
Referer: http://localhost/umbraco/build/umbraco/editContent.aspx?id=1065
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225
I just installed this on a 4.7.2 site, now I am getting yellow screens of death in the umbraco backoffice when clicking on any of the content nodes or document types.
Here's my stack trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Our.Umbraco.DocTypeFieldsets.Extensions.DataHelper.GetPropertiesForContentType(Int32 contentTypeId) +133
Our.Umbraco.DocTypeFieldsets.Events.CreateFieldsets.ContentControl_AfterContentControlLoad(ContentControl contentControl, ContentControlLoadEventArgs e) +226
umbraco.controls.ContentControl.FireAfterContentControlLoad(ContentControlLoadEventArgs e) +27
umbraco.controls.ContentControl.OnLoad(EventArgs e) +38
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
So, just wondering ... Is there source code available for this package?
The error you're getting is the same as this thread - it looks like the installer wasn't able to add the appropriate lines to your web.config file (perhaps permissions?). See this post for the lines you need to add manually and let me know if that does the trick. And to answer your other question, the source is avaible on Github :)
Wow, thank you for your fast reply there, Tom! Looks like you and I cross-posted there and I did get this working. What a really simple yet incredibly useful/helpful idea.
"Object referance not set to an instance of an object" while trying to open a site after publishing
I am getting the below error while trying to run the web site made in Umbraco.
The url of the site is
Server Error in '/umbraco/build' Application.
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225
Request Details
Trace Information
Object reference not set to an instance of an object.
at umbraco.cms.businesslogic.macro.MacroModel..ctor(Macro m)
at umbraco.macro..ctor(String alias)
at umbraco.presentation.templateControls.Macro.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
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.Control.InitRecursive(Control namingContainer)
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)
Control Tree
Session State
Application State
Request Cookies Collection
Response Cookies Collection
Headers Collection
Response Headers Collection
Form Collection
Querystring Collection
Server Variables
Hi,
I'm not sure this error is related to the DocType Fieldsets package.
I think it's a common issue, maybe that results from your template having a reference to a macro that doesn't exist? See this thread
Hope this helps,
Tom
I just installed this on a 4.7.2 site, now I am getting yellow screens of death in the umbraco backoffice when clicking on any of the content nodes or document types.
Here's my stack trace:
So, just wondering ... Is there source code available for this package?
Thank you!
By the way, ... deleting the Our.Umbraco.DocTypeFieldsets.dll file in the /bin/ folder has restored the backoffice to normal functionality.
Hi Funka,
The error you're getting is the same as this thread - it looks like the installer wasn't able to add the appropriate lines to your web.config file (perhaps permissions?). See this post for the lines you need to add manually and let me know if that does the trick. And to answer your other question, the source is avaible on Github :)
Thanks,
Tom
Sorry, I posted too soon!
Did not see the other thread in this forum here : http://our.umbraco.org/projects/backoffice-extensions/document-type-fieldsets/bug-reports/32753-Getting-a-Object-reference-not-set-to-an-instance-of-an-object ; which has resolved this issue! Thank you!
Wow, thank you for your fast reply there, Tom! Looks like you and I cross-posted there and I did get this working. What a really simple yet incredibly useful/helpful idea.
Thanks again!
is working on a reply...