Copied to clipboard

Flag this post as spam?

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


  • Rune Grønkjær 1371 posts 3102 karma points
    Sep 28, 2012 @ 13:55
    Rune Grønkjær
    0

    Error when choosing widget grid in "Render control"

    Hi Matt,

    I succeeded in destroying the widget grid when installing and uninstalling it a couple of times (Or 10. Don't ask why).

    Anyways. When I try choosing it in my Data Type's Render Control drop down and hitting save I get a YSOD. Have had a lot of these today unfortunately. Must be doning something wrong today.

    Can you see what my problem might be?

    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.]
       Our.Umbraco.WidgetGrid.DataTypes.WidgetGridPreValueEditor.OnLoad(EventArgs e) +135
       System.Web.UI.Control.LoadRecursive() +54
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929

  • Rune Grønkjær 1371 posts 3102 karma points
    Sep 28, 2012 @ 13:56
    Rune Grønkjær
    0

    By the way. It worked at some point, but then I destroyed it. And now uninstalling and installing it or just reinstalling it does'nt work.

    /Rune

  • Rune Grønkjær 1371 posts 3102 karma points
    Oct 12, 2012 @ 09:27
    Rune Grønkjær
    0

    I THINK that updating Umbraco did the trick. I could install it now anyways.

  • Chris Parkinson 39 posts 73 karma points
    Nov 21, 2012 @ 16:40
    Chris Parkinson
    0

    I've got exactly the same problem. Umbraco 4.10. Had an error when installing due to permissions (i'd not checked out my app data folder) and now I get this error every time I hit the render control method in data types. 

    Any ideas?

  • Chris Parkinson 39 posts 73 karma points
    Nov 21, 2012 @ 19:06
    Chris Parkinson
    0

    Had a nosey in the db and found this in the node table:

    pknodeIdcontrolIddbType

    54108000000000-0000-0000-0000-000000000000Ntext

    Node Id 1080 is the data type I'm trying to create. Really struggling with this now, I may have to look at alternative page structures for this doc type that don't use widget grid. :\

  • Chris Parkinson 39 posts 73 karma points
    Nov 22, 2012 @ 08:27
    Chris Parkinson
    0

    The problem seems to be that even after uninstalling, the render control drop down still shows 'Widget Grid'. I'm guessing when re-installing it doesn't overwrite this value, hence why when trying to create a data type from it it creates a GUID of 000000000-0000-0000-0000-000000000000?

  • Rune Grønkjær 1371 posts 3102 karma points
    Nov 22, 2012 @ 08:28
    Rune Grønkjær
    0

    Hi Chris,

    Unfortunately I don't have any help for you. It just startet working for me again after updating Umbraco. But never found out what was wrong :(

    Never happened for me on any other packages though!

    /Rune

  • Chris Parkinson 39 posts 73 karma points
    Nov 22, 2012 @ 11:18
    Chris Parkinson
    0

    No worries. :) 

    I think the above was a red herring, I'd uninstalled the package but had a reference to the dll so it kept re-adding it on build! :S

    However, I've downloaded the source, built in debug mode and set the VS debugger to show me where exceptions are thrown. I'm going to have to move onto something else now, wasted far too much time on this. If nobody has any ideas then it's back to creating a widget type interface using multi node picker. Shame, this would have been perfect for a clients requirements. :\

     

     

Please Sign in or register to post replies

Write your reply to:

Draft