Random Contour crashes - System.NullReferenceException: Object reference not set to an instance of an object
I have this issue on multiple sites running contour. It happens randomly and intermittantly, however fatally when they do occur. An app pool reset will remedy the situation usually, however, since it crashes all the contour forms on the site and the entire contour dashboard panel YSOD's I would consider this a showstopper for me.
Umbraco v6.1.6 (Assembly version: 1.0.5021.24867) with Contour 3.0.19
Trace:
2014-07-08 08:37:20,145 [9] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 38] 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.Forms.Data.Storage.UserSecurityStorage.GetUserSecurity(Object userid)
at Umbraco.Forms.UI.Security.CanCurrentUserManageForms()
at Umbraco.Forms.UI.Dashboard.FormsDashboard.Page_Load(Object sender, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
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.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.umbraco_dashboard_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\dfc01974\a867b693\App_Web_dashboard.aspx.5f2dec3.qu4bqwoq.0.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I had the connection string in both the AppSettings and the ConnectionStrings part of the web.config. As I'm using 4.11.10 the latter was redundant, and presumably it was being detected and triggering some kind of switch in the code.
There's 3 hours of my life I'm not going to get back.
David, thanks for this...Interesting - I have this issue happening on all my contour installations 4X -> 6.1.6. In all my 6x installations, there is no duplication of connectionstring properties anywhere, but this still happens. After I touch the config file, everthing comes back up online. There is no warning of course and no apparent trigger that I can see. I have heard nothing back from anyone on this and I am deparate for a solution.
Nightmare. Is there anything complicated about your DB server or the connection to it?
As a short term work around you might find setting your application pool to recycle every 5 minutes resolves things.
If you can work out who the primary architect for Contour is (I think it might be Piers) then you'll probably get a better response if you jump on Twitter and ask there.
Random Contour crashes - System.NullReferenceException: Object reference not set to an instance of an object
I have this issue on multiple sites running contour. It happens randomly and intermittantly, however fatally when they do occur. An app pool reset will remedy the situation usually, however, since it crashes all the contour forms on the site and the entire contour dashboard panel YSOD's I would consider this a showstopper for me.
Umbraco v6.1.6 (Assembly version: 1.0.5021.24867) with Contour 3.0.19
Trace:
2014-07-08 08:37:20,145 [9] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 38] 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.Forms.Data.Storage.UserSecurityStorage.GetUserSecurity(Object userid) at Umbraco.Forms.UI.Security.CanCurrentUserManageForms() at Umbraco.Forms.UI.Dashboard.FormsDashboard.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() 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.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.umbraco_dashboard_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\dfc01974\a867b693\App_Web_dashboard.aspx.5f2dec3.qu4bqwoq.0.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I got this too. Any ideas on the course? I'm using 4.11.10 and 3.0.21 (for V4).
Oddly, the same site works on my local machine...
Wow! I found the solution to my issue.
I had the connection string in both the AppSettings and the ConnectionStrings part of the web.config. As I'm using 4.11.10 the latter was redundant, and presumably it was being detected and triggering some kind of switch in the code.
There's 3 hours of my life I'm not going to get back.
David, thanks for this...Interesting - I have this issue happening on all my contour installations 4X -> 6.1.6. In all my 6x installations, there is no duplication of connectionstring properties anywhere, but this still happens. After I touch the config file, everthing comes back up online. There is no warning of course and no apparent trigger that I can see. I have heard nothing back from anyone on this and I am deparate for a solution.
Nightmare. Is there anything complicated about your DB server or the connection to it?
As a short term work around you might find setting your application pool to recycle every 5 minutes resolves things.
If you can work out who the primary architect for Contour is (I think it might be Piers) then you'll probably get a better response if you jump on Twitter and ask there.
is working on a reply...