Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jamie Attwood 206 posts 500 karma points c-trib
    Jul 08, 2014 @ 15:38
    Jamie Attwood
    0

    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)
  • David Peck 690 posts 1896 karma points c-trib
    Jul 19, 2014 @ 14:45
    David Peck
    0

    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...

    [NullReferenceException: Object reference not set to an instance of an object.]
       Umbraco.Forms.Data.Storage.UserSecurityStorage.GetUserSecurity(Object userid) +69
       Umbraco.Forms.UI.Security.CanCurrentUserManageForms() +263
       Umbraco.Forms.UI.Dashboard.FormsDashboard.Page_Load(Object sender, EventArgs e) +991
       System.Web.UI.Control.LoadRecursive() +70
       System.Web.UI.Control.LoadRecursive() +189
       System.Web.UI.Control.LoadRecursive() +189
       System.Web.UI.Control.LoadRecursive() +189
       System.Web.UI.Control.LoadRecursive() +189
       System.Web.UI.Control.LoadRecursive() +189
       System.Web.UI.Control.LoadRecursive() +189
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3177
  • David Peck 690 posts 1896 karma points c-trib
    Jul 19, 2014 @ 15:36
    David Peck
    0

    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.

  • Jamie Attwood 206 posts 500 karma points c-trib
    Jul 21, 2014 @ 14:31
    Jamie Attwood
    0

    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.

  • David Peck 690 posts 1896 karma points c-trib
    Jul 21, 2014 @ 16:29
    David Peck
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft