Copied to clipboard

Flag this post as spam?

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


  • Barry Fogarty 493 posts 1129 karma points
    Jan 04, 2012 @ 17:29
    Barry Fogarty
    0

    Null reference error in doctype

    Hi, I have imlpemented your package - everyhting works correctly and I can pick the root server folder from the data type definition.  However, when I go to a content node that contains the new doctype property to try to set its value, I get a null reference error as follows:

    [NullReferenceException: Object reference not set to an instance of an object.]
       TH.FolderPicker.DataEditor.OnInit(EventArgs e) +39
       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.AddedControl(Control control, Int32 index) +276
       umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) +3675
       umbraco.controls.ContentControl.CreateChildControls() +769
       System.Web.UI.Control.EnsureChildControls() +181
       umbraco.controls.ContentControl.OnInit(EventArgs e) +122
       System.Web.UI.Control.InitRecursive(Control namingContainer) +132
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +276
       umbraco.cms.presentation.editContent.OnInit(EventArgs e) +1004
       System.Web.UI.Control.InitRecursive(Control namingContainer) +132
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1969

    An I missing anythgin?  I am using the Umbraco v 4.6.1 (Assembly version: 1.0.4029.25836).  I have tried cerating a completel;y new doctype, and done all the usual IIS restarts etc, but cant seem to figure it out.  CHeers

     

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 04, 2012 @ 21:00
    Jan Skovgaard
    0

    Hi Barry

    Maybe this package simply (and sadly) is not compatible with 4.5+ version of Umbraco - since it on the package page says it's compatible with v4.x and not 4.5.x I'm afraid it just won't run on newer versions.

    /Jan

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jan 04, 2012 @ 21:16
    Thomas Höhler
    0

    I don't think so, but I will take a look right now...

    Normally it has to be compatible but it's long time ago as I touched it the last time ;-)

    Will dig into it right now

    Thomas

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jan 04, 2012 @ 21:54
    Thomas Höhler
    0

    Bug found

    Barry would you be so kind to test the new dll and give me feedback so that I can pack it up to a new version?

    Just download the dll from here and put it into your bin folder.

    hth, Thomas

     

  • Barry Fogarty 493 posts 1129 karma points
    Jan 05, 2012 @ 10:40
    Barry Fogarty
    0

    Hi Thomas, thanks for your help - could you re-upload the DLL please, I am getting a 404 at that link.  Cheers.

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jan 05, 2012 @ 10:56
    Thomas Höhler
    0

    Right click on the link, and choose "save as"

    it's the dll itself so the webserver does not know how to handle the file extension 

    Thomas

  • Barry Fogarty 493 posts 1129 karma points
    Jan 05, 2012 @ 11:39
    Barry Fogarty
    0

    Ah yes.  I copied the DLL but no I am not getting a TH.FolderPicker in the render control list any more.  If I go back to the datatype I created using v0.2 of the DLL, it tells me that 'The given key was not present in the dictionary.'


    I am taking a look in the DB now to see if I can clean things out, but let me know if you spot the problem.  Thanks again.

    BTW I noticed that the original DLL is 14Kb but the new one is only 2Kb. 

  • Barry Fogarty 493 posts 1129 karma points
    Jan 06, 2012 @ 11:37
    Barry Fogarty
    0

    Hi Thomas - still no joy with your package - is there something missing in the DLL?  The version on the link is only 1.3Kb whereas the one in the package is 14Kb.  If you don't have time please send me the project code to barryfogarty at gmail dot com and I would be happy to contribute a fix.

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jan 06, 2012 @ 11:51
    Thomas Höhler
    0

    Hmm, it worked for me in my test installation...

    Will send you the code this evening (don't have it here), Just updated the project to be open for collaboration. 

    Thomas

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jan 08, 2012 @ 11:02
    Thomas Höhler
    1

    Hi Barry,

    just uploaded the source to my server: http://www.thoehler.com/downloads/TH.FolderPicker.zip

     

     

     

  • ma quayle 6 posts 26 karma points
    Sep 04, 2012 @ 08:51
    ma quayle
    0

    Hi All,

    I am getting saving an invalid .zip file using Save As on the above link.  This is exactly what I need for my present project. 

    If the package no longer works, could someone give me a hint as to how the tree view was displayed in the data type definition, so I may display it possible as a macro?

     

    Thanks in advance,

     

    Maryann Q

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Sep 04, 2012 @ 18:19
    Thomas Höhler
    1

    Sorry, 

    server was down. The link should work now.

    hth,
    Thomas

  • Maryann Quayle 1 post 21 karma points
    Sep 04, 2012 @ 21:19
    Maryann Quayle
    0

    Many Thanks,

    You have saved me much time and work!

    Works perfectly.

    Maryann

Please Sign in or register to post replies

Write your reply to:

Draft