Copied to clipboard

Flag this post as spam?

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


  • Lee 1123 posts 3059 karma points
    Apr 06, 2010 @ 20:52
    Lee
    0

    Improved Media Picker Error? Input string was not in a correct format

    Just wondering if anyone has seen this error before? Using Tim's improved media picker, and if I try to insert a new image into the RTE directly from the pop up (As in clicking on the create new tab, selecting the file etc..) as soon as I click save the file is uploaded and saved but then I get presented with the following screen?

    Server Error in '/' Application.

    Input string was not in a correct format.

    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.FormatException: Input string was not in a correct format.

    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: 

    [FormatException: Input string was not in a correct format.]
       System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +10161267
       System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +207
       umbraco.editorControls.uploadField.Save() +2452
       umbraco.dialogs.uploadImage.Page_Load(Object sender, EventArgs e) +931
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
       System.Web.UI.Control.OnLoad(EventArgs e) +132
       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +21
       System.Web.UI.Control.LoadRecursive() +66
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927

    However the file has uploaded fine, if I close the pop up and re-open I can select it in the normal way?

  • Chriztian Steinmeier 2726 posts 8320 karma points MVP 4x admin c-trib
    Apr 06, 2010 @ 22:50
    Chriztian Steinmeier
    0

    I have seen this error (though in a non-Umbraco context), where the problem was in fact that the function receiving the string in question was Culture-dependant, and therefore expected a string like this "1,000,000.00" but got "1.000.000,00" (i.e., english/american vs. danish number formats)...

    Don't know if that could shed some light on the origin of this error, though...

    /Chriztian

  • Lee 1123 posts 3059 karma points
    Apr 07, 2010 @ 07:41
    Lee
    0

    Thats interesting, I did change the language - But from English United States > English United Kingdom!  I'll switch it back and see if it sorts it later on :)

  • dandrayne 1138 posts 2262 karma points
    Apr 07, 2010 @ 10:26
    dandrayne
    0

    Do you have the multiple file uploader installed?  This may be causing problems -> http://our.umbraco.org/forum/using/ui-questions/5070-Uploading-images-in-RTE-throw-error

  • Lee 1123 posts 3059 karma points
    Apr 07, 2010 @ 12:48
    Lee
    0

    Ahhhhhh yes I do... I'll have a look at your resolution in the other thread and see if it works for me too :)

  • Lee 1123 posts 3059 karma points
    Apr 07, 2010 @ 12:56
    Lee
    2

    Dan you are a legend :) ... Top find and fix fella...

    Here is Dans fix if anyone else see's this thread

    Try this, maybe after backing up your db

    • in the CmsDataType table, find the record with a controlId that begins with "accb9911" - this is the multiplefileuploader
    • get the NodeId fromt this record
    • In the CmsDataTypePreValues table, go to the line that deals with multiplefileupload (it will show the path to the usercontrol
    • This will have a datatype node ID of 0.  Set it to be the node ID taken from the CmsDataType table

    Good luck!
    Dan

  • dandrayne 1138 posts 2262 karma points
    Apr 07, 2010 @ 13:53
    dandrayne
    1

    Glad you got it sorted! 

    The noerd uploader is fantastic but unfortunately has several unresolved issues.  We have a "fixed" version in-house, but are reluctant to release it here for obvious reasons.  We did pass the source of the fixed version back to Noerd however, so hopefully when they get a chance to update it these issues will disappear.  They appear to be very busy, which can only be a good thing!

  • Jonas Eriksson 930 posts 1825 karma points
    May 28, 2010 @ 10:37
    Jonas Eriksson
    0

    Brilliant Dan, that fix did the trick for me too.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies