Setup:
Version: Umbraco 461 (web root - not virtual directory)
Package: KIOAK Standard Site
Server: W2K3 / IIS6 / SQL2008 Express / ASPNET 4.0
Issue:
I am a newbie, please bare with me. I created a couple of document types
to be used in a macro. Then created some contents for them. Next I
created the XSLT macro. Then I put the macro inside a page template.
Everything went OK. I did not see any erorr what so ever. But when I
tried to go back and view the document type to make some additions, I received an
exception. In fact, every document type now is throwing exception when
viewing. Detailed exception below:
Object reference not set to an instance of an object.
body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
pre {font-family:"Lucida Console";font-size: .9em}
.marker {font-weight: bold; color: black;text-decoration: none;}
.version {color: gray;}
.error {margin-bottom: 10px;}
.expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
Server Error in '/' 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.controls.ContentTypeControlNew.setupInfoPane() +534
umbraco.controls.ContentTypeControlNew.OnInit(EventArgs e) +61
System.Web.UI.Control.InitRecursive(Control namingContainer) +140
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Control.InitRecursive(Control namingContainer) +311
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.1
The site is still running fine, though. I am now really not sure how to proceed. Thank you in advance for your kind help.
Here is what have been captured in the Event Viewer. Might help in debugging this issue.
Event Type: Warning Event Source: ASP.NET 4.0.30319.0 Event Category: Web Event Event ID: 1309 Date: 2/16/2011 Time: 5:21:28 PM User: N/A Computer: EGSTV01 Description: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 2/16/2011 5:21:28 PM Event time (UTC): 2/16/2011 11:21:28 PM Event ID: cb3fa077bc584f17a8a5c649faae4420 Event sequence: 1298 Event occurrence: 26 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1535260211/Root-1-129423660139062500 Trust level: Full Application Virtual Path: / Application Path: C:\Inetpub\wwwroot\Umbraco461\ Machine name: EGSTV01 Process information: Process ID: 2176 Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE Exception information: Exception type: NullReferenceException Exception message: Object reference not set to an instance of an object. at umbraco.controls.ContentTypeControlNew.setupInfoPane() at umbraco.controls.ContentTypeControlNew.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.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information: Request URL: http://30.30.30.156/umbraco/settings/editNodeTypeNew.aspx?id=1230 Request path: /umbraco/settings/editNodeTypeNew.aspx User host address: 30.30.30.156 User: Is authenticated: False Authentication Type: Thread account name: NT AUTHORITY\NETWORK SERVICE Thread information: Thread ID: 21 Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating: False Stack trace: at umbraco.controls.ContentTypeControlNew.setupInfoPane() at umbraco.controls.ContentTypeControlNew.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.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Custom event details:
... and probably a few more but I'm too lazy to search.
One post solved it by rebooting his server. Another solved it by reinstalling ASPNET or iisreset. Very drastic. Whatever the issue is, it obviously happened enough to probably be a bug.
I too have resolved it. However, only by restarting both SQL service from SQL Config Mngr and the website from IIS Mngr, in that order.
Glad to hear you got this issue solved. Have you checked to see if there has actually been filed a bug report on this on codeplex? And do you have any idea on how to recreate the issue? Otherwise I guess the core team will have a hard time figuring out what is the cause..
No, I have not check if there is a bug report for similar issue at codeplex. I will check later.
And I have not tried to purposely recreate the issue. However, I did delete the document type that I created last prior to the issue and rebuild it without issue. I had since then created more document types and have viewed and edited them many times, without any issue also.
It is probably one of those weird issues that only happpen when the moon, the sun and other celestial bodies are aligned just right. :)
I will update this post if this happens again. Thank you.
Viewing Document Type Error
Hello all,
Setup:
Version: Umbraco 461 (web root - not virtual directory)
Package: KIOAK Standard Site
Server: W2K3 / IIS6 / SQL2008 Express / ASPNET 4.0
Issue:
I am a newbie, please bare with me. I created a couple of document types to be used in a macro. Then created some contents for them. Next I created the XSLT macro. Then I put the macro inside a page template. Everything went OK. I did not see any erorr what so ever. But when I tried to go back and view the document type to make some additions, I received an exception. In fact, every document type now is throwing exception when viewing. Detailed exception below:
Object reference not set to an instance of an object. body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
Server Error in '/' 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.1
The site is still running fine, though. I am now really not sure how to proceed. Thank you in advance for your kind help.
Hello again,
Here is what have been captured in the Event Viewer. Might help in debugging this issue.
Event Type: Warning
Event Source: ASP.NET 4.0.30319.0
Event Category: Web Event
Event ID: 1309
Date: 2/16/2011
Time: 5:21:28 PM
User: N/A
Computer: EGSTV01
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2/16/2011 5:21:28 PM
Event time (UTC): 2/16/2011 11:21:28 PM
Event ID: cb3fa077bc584f17a8a5c649faae4420
Event sequence: 1298
Event occurrence: 26
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1535260211/Root-1-129423660139062500
Trust level: Full
Application Virtual Path: /
Application Path: C:\Inetpub\wwwroot\Umbraco461\
Machine name: EGSTV01
Process information:
Process ID: 2176
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
at umbraco.controls.ContentTypeControlNew.setupInfoPane()
at umbraco.controls.ContentTypeControlNew.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.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL: http://30.30.30.156/umbraco/settings/editNodeTypeNew.aspx?id=1230
Request path: /umbraco/settings/editNodeTypeNew.aspx
User host address: 30.30.30.156
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 21
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at umbraco.controls.ContentTypeControlNew.setupInfoPane()
at umbraco.controls.ContentTypeControlNew.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.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Thank you.
[UPDATE]
Hello all,
I found similar issues from these posts -
http://our.umbraco.org/forum/core/general/6977-Error-when-trying-to-view-Document-Types-in-Umbraco
http://our.umbraco.org/forum/getting-started/installing-umbraco/6226-Error-Document-Types
http://our.umbraco.org/forum/templating/templates-and-document-types/13298-error-viewing-document-types-
... and probably a few more but I'm too lazy to search.
One post solved it by rebooting his server. Another solved it by reinstalling ASPNET or iisreset. Very drastic. Whatever the issue is, it obviously happened enough to probably be a bug.
I too have resolved it. However, only by restarting both SQL service from SQL Config Mngr and the website from IIS Mngr, in that order.
Hope this help others with similar issue.
Hi Mosabusan
Glad to hear you got this issue solved. Have you checked to see if there has actually been filed a bug report on this on codeplex? And do you have any idea on how to recreate the issue? Otherwise I guess the core team will have a hard time figuring out what is the cause..
/Jan
Hi Jan,
Thanks for the reply. To answer your questions:
No, I have not check if there is a bug report for similar issue at codeplex. I will check later.
And I have not tried to purposely recreate the issue. However, I did delete the document type that I created last prior to the issue and rebuild it without issue. I had since then created more document types and have viewed and edited them many times, without any issue also.
It is probably one of those weird issues that only happpen when the moon, the sun and other celestial bodies are aligned just right. :)
I will update this post if this happens again. Thank you.
Solved it by restarting the IIS too
Did an IISRESET 1st nothing happened. RESTARTED SQL Engine SERVICES then IIS and it worked.
is working on a reply...