Copied to clipboard

Flag this post as spam?

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


  • James Hildeman 92 posts 88 karma points
    Sep 22, 2009 @ 17:58
    James Hildeman
    0

    ZipUpload for v3 - trying to backport Tims great v4 utility

    Does anyone have Tim Geyssens Zip Upload working for a version 3.x installation?  I grabbed his code from http://www.nibble.be/?p=55 but it did not compile initially against v3.0.5 .dlls.  I changed several references from mediaPicker.Value to mediaPicker.Text and after "fixing" that I get the following error, which tells me that my changes is probably not right. 

    I am trying to figure out what was used for the selected value of a mediaChooser in v3.x.  Any ideas on that?  There has to be some property for the selected value of the control but I don't see anything that looks likely (except .Text).  Thanks in advance.

     

    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.editorControls.mediaChooser.get_Text() +98
       umbraco.editorControls.mediaChooser.Render(HtmlTextWriter writer) +1791
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
       System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
       System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
       System.Web.UI.Control.Render(HtmlTextWriter writer) +10
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       umbraco.uicontrols.TabPage.Render(HtmlTextWriter writer) +1937
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
       umbraco.uicontrols.TabView.Render(HtmlTextWriter writer) +1417
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
       System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163
       System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
       System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
       System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
       System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
       System.Web.UI.Page.Render(HtmlTextWriter writer) +29
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99
       System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266
    
  • James Hildeman 92 posts 88 karma points
    Sep 22, 2009 @ 21:21
    James Hildeman
    0

    Does anyone know what was used for the "selected value" of a umbraco.editorControls.mediaChooser in v3.x.  There has to be some property for the selected value of the control but I don't see anything that looks likely (except .Text) and that errors out. 

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Sep 22, 2009 @ 21:23
    Douglas Robar
    0

    There was a zip upload for v3 that Tim upgraded for v4. I'll see if I can find it and post a link for you.

    cheers,
    doug.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Sep 22, 2009 @ 21:38
    Douglas Robar
    0

    You can get the source from http://umbracoext.codeplex.com/SourceControl/changeset/view/21521#58550

    And also find a pre-compiled version at: http://www.ebita.dk/pakker/umbracoDashboard.zip (link broken)

    I can't find a live link to a pre-compiled version any more. I think I've got a copy saved from when I used it a year or two ago on a v3 project. Give me a shout if you want me to look for it and I'll email it over if I have it. You can contact me through my website at http://www.percipientstudios.com. Otherwise, just grab the source above and compile it.

    cheers,
    doug.

  • James Hildeman 92 posts 88 karma points
    Sep 23, 2009 @ 22:16
    James Hildeman
    0

    Hey Thanks  Doug. 

    I grabbed the source and compiled it but it is looking for some "Brettle.Web.NeatUpload.InputFile".  It also had a reference to a Brettle...dll file.  Any thoughts on where I can find one of those?  I looked through the change set you referenced and other changesets and I see nothing of that sort.  Any thoughts?

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Sep 23, 2009 @ 22:44
    Douglas Robar
    0

    NeatUpload is available at http://www.brettle.com/neatupload.

    This post might also be helpful: http://www.darren-ferguson.com/2006/07/19/important-info-on-umbraco-upload-progress-bar.aspx

    And.. I do have the dashboard project pre-compiled for umbraco v3 if you need it. Just contact me through my website at www.percipientstudios.com and I'll email it to you. Though that kind of ruins some of the fun and learning :)

    cheers,
    doug.

  • James Hildeman 92 posts 88 karma points
    Sep 23, 2009 @ 22:45
    James Hildeman
    0

    Found a link here but the 1.3 version errors out with:

    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.]
       Brettle.Web.NeatUpload.ProgressBar.get_LastPostBackIDQueryStringPortion() +11
       Brettle.Web.NeatUpload.ProgressBar.OnPreRender(EventArgs e) +268
       System.Web.UI.Control.PreRenderRecursiveInternal() +80
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    
  • James Hildeman 92 posts 88 karma points
    Sep 23, 2009 @ 22:48
    James Hildeman
    0

    Thanks Doug!  I just sent you an email.  I knew it worked in v4 and told someone it would be an easy deal to get it working in v3.  No fun and learning today, it's a "just get it checked off the list" day.  Thx in advance.

Please Sign in or register to post replies

Write your reply to:

Draft