Non-negative number required.

Thread is closed for posting
29 posts, 0 answers
  1. Alex Hughes
    Alex Hughes avatar
    5 posts
    Member since:
    Jan 2006

    Posted 30 Jul 2008 Link to this post

      I have just installed the 2008 v2 binaries and I am getting the following error when i first switch to the page with the radupload controls on.   If i then use the browser back button and revisit the page it is all ok
    Have you any ideas to what may be causing this?

    It happens whenever i start to debug from visual studio 2005

    Thanks

    Alex

     

    Server Error in '/testing' Application.

    Non-negative number required.
    Parameter name: length

    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.ArgumentOutOfRangeException: Non-negative number required.
    Parameter name: length

    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:

    [ArgumentOutOfRangeException: Non-negative number required.
    Parameter name: length]
       System.Array.CreateInstance(Type elementType, Int32 length) +2855364
       Telerik.Web.UI.Upload.RequestParser.GetFieldBytes(Byte[] chunk, Int32 fieldStartIndex, Int32 fieldBytesCount) +39
       Telerik.Web.UI.Upload.RequestParser.Parse(Byte[] chunk, Int32 validChunkBytes) +229
       Telerik.Web.UI.Upload.ProgressWorkerRequest.UpdateProgress(Byte[] buffer, Int32 validBytes, String caller) +30
       Telerik.Web.UI.Upload.ProgressWorkerRequest.GetPreloadedEntityBody() +39
       System.Web.HttpRequest.GetEntireRawContent() +388
       System.Web.HttpRequest.GetMultipartContent() +56
       System.Web.HttpRequest.FillInFormCollection() +222
       System.Web.HttpRequest.get_Form() +65
       System.Web.HttpRequest.get_HasForm() +3309630
       System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +45
       System.Web.UI.Page.DeterminePostBackMode() +65
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +133
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
  2. ewart
    ewart avatar
    221 posts
    Member since:
    Jan 2007

    Posted 30 Jul 2008 Link to this post

    I have a very similar issue - as soon as I edit the content in my radeditor and try to save the page i get that error.  if i edit other fields and save, no problem.

    did you find a resolution Alex?

    regards
      ewart


    Non-negative number required.
    Parameter name: length

    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.ArgumentOutOfRangeException: Non-negative number required.
    Parameter name: length

    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:

    [ArgumentOutOfRangeException: Non-negative number required.
    Parameter name: length]
       System.Array.CreateInstance(Type elementType, Int32 length) +2855364
       Telerik.Web.UI.Upload.RequestParser.GetFieldBytes(Byte[] chunk, Int32 fieldStartIndex, Int32 fieldBytesCount) +39
       Telerik.Web.UI.Upload.RequestParser.Parse(Byte[] chunk, Int32 validChunkBytes) +227
       Telerik.Web.UI.Upload.ProgressWorkerRequest.GetPreloadedEntityBody() +45
       System.Web.HttpRequest.GetEntireRawContent() +388
       System.Web.HttpRequest.GetMultipartContent() +56
       System.Web.HttpRequest.FillInFormCollection() +222
       System.Web.HttpRequest.get_Form() +65
       System.Web.HttpRequest.get_HasForm() +3316990
       System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +45
       System.Web.UI.Page.DeterminePostBackMode() +65
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +133
    
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michael
    Michael avatar
    84 posts
    Member since:
    May 2008

    Posted 30 Jul 2008 Link to this post

    I am getting the exact same error too. Not always but many times. Really can't have this happening :(.

    For me it is happening in a RadWindow with RadAjaxManager, and only occurs in integrated mode.
  5. Alex Hughes
    Alex Hughes avatar
    5 posts
    Member since:
    Jan 2006

    Posted 31 Jul 2008 Link to this post

    Sadly I've not found a resolution

    I have worked out it is only occuring when i have a RadProgressManager on the page, but then its not consistently happening so i cant find a pattern as to why....
    Nothing like this happened with the 2007 q3 version i had in place before

    I hope telerik have an answer for us

    Alex
  6. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 31 Jul 2008 Link to this post

    Hi guys,

    Indeed, the problem is because of a change we did to the RadUplodaHttpModule. We changed the logic to make it more testable, but it seems we've missed a case. To my regret we were not able to reproduce the error on our site. The good thing is that with the new scheme we can easily detect the error once you send us a fiddler archive of the POST request. Is this possible for you?

    Here is what we need:
    • Replace the Telerik.Web.UI assembly with the newest one, so that you get the error;
    • Navigate to the page, throwing the error through computer name (not localhost);
    • Open fiddler and make the postback so that you get the error;
    • Mark the sessions (CTRL+A) and archive them (File -> Save -> Session(s) -> In ArchiveZip);
    • Send me the archive file.
    Once we have this request we will analyze it and try fixing the error immediately.


    By the way, another customer of ours, having the same problem told us that clearing the Temporary ASP.NET files fixed the problem on their side. Can you give this a try too?

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Alex Hughes
    Alex Hughes avatar
    5 posts
    Member since:
    Jan 2006

    Posted 31 Jul 2008 Link to this post

    Hi Erjan

    I have tested the site after clearing my temporary asp.net files and also my browser cache and it give the same error message.

    I have installed and run the fiddler program and captured an error message in an archive as requested

    Do you have an email address that you would like me to send the file to?

    Thanks

    Alex
  8. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 31 Jul 2008 Link to this post

    Hi Alex,

    Sorry for not mentioning that - can you please, open a formal support ticket to send the file to us?

    Best regards,
    Erjan Gavalji
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. Larkin Young
    Larkin Young avatar
    141 posts
    Member since:
    Feb 2005

    Posted 02 Aug 2008 Link to this post

    There is an easy way to reproduce this--put a regular file upload control on the form and try submitting the form without any filename specified. You don't need a progressmanager on the form, but make sure you leave the HttpHandler and HttpModule entries in the web.config.
  10. ewart
    ewart avatar
    221 posts
    Member since:
    Jan 2007

    Posted 03 Aug 2008 Link to this post

    This is happening in my production system, and it's urgent I resolve.  Feel free to use that as an example. 

    To replicate, scroll to the bottom of the page and use the standard file input control to select a small jpg or gif file to upload, then click save.

    http://www.onesportevent.com/AddEvent.aspx?EventEditID=2444


    am using the approach documented in "Using standard file input controls with RadMemoryOptimization" and 'file' returns null in this instance.

    file = uploadContext.UploadedFiles(file1.UniqueID)

    noting the help which says that RadUpload controls interfere with standard file inputs, I'am wondering if it is a problem because I also have a telerik radeditor on the page?

    regards
      ewart
  11. ewart
    ewart avatar
    221 posts
    Member since:
    Jan 2007

    Posted 03 Aug 2008 Link to this post

    fudge.  I thought I had the answer -- I've switched the control to a RadUpload  on the relevant pages and websites, and it tested OK so i uploaded the live version to the websites it's on, but unforutnatley it is still buggered... so if your looking at that same page now, it is now a radupload control..

  12. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 04 Aug 2008 Link to this post

    Hello ewart,

    Please download the latest build from here.

    Kind regards,
    Veskoni
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  13. ewart
    ewart avatar
    221 posts
    Member since:
    Jan 2007

    Posted 04 Aug 2008 Link to this post

    Hi there, think you guys nailed that bug.  The test version works locally (althought they did anyway) so I've had to promote it to a production server to test.. although I havn't extensively tested, the new version appears to work ok.

    I need a production version ASAP though. can you indicate the build contents so I can guage the level of retesting needed? ..  preferably I want a build just with the relevant fixes as I don't want to have to retest all the functionlaity across other websites that rely on this.

    can you place one in my account please or email me a download link (only need the .net 2 binaries, not .35)

    Thanks
      Ewart.
  14. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 05 Aug 2008 Link to this post

    Hi ewart,

    To my regret we do not support the preparation of a build, including a specific fix. The fix will be available officially in the SP1 release of the RadControls for ASP.NET Ajax suite, which will have all the pre-release tests passed. The current assembly has passed only the automated tests. It includes various fixes, like:
    • Clicking on the RadUpload Select button does not open the browse dialog when the control placed to a relatively/absolutely positioned element;
    • Multiline TextBox has additional line in FireFox;
    • ProgressManager does not show custom progress if no upload on the page;
    • RadProgressArea design time;
    • Some of the Upload skins don't show the progress bar under Safari;
    • RadTreeNode ImageUrl is not updated properly for Load on demand nodes;
    etc.

    Please, open a formal support ticket to obtain a dev version of the .NET 2.0 assemblies.

    Best regards,
    Erjan Gavalji
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  15. ewart
    ewart avatar
    221 posts
    Member since:
    Jan 2007

    Posted 05 Aug 2008 Link to this post

    Righto, have logged support ticket.  we're in different timezones so hopefully I won't have to wait another day for that.

    cheers
    ewart
  16. ewart
    ewart avatar
    221 posts
    Member since:
    Jan 2007

    Posted 05 Aug 2008 Link to this post

    Got it promptly via support thanks and have implimented, problems solved and no side effects (touch wood!) observed thanks.
  17. NetDeveloper
    NetDeveloper avatar
    7 posts
    Member since:
    Apr 2010

    Posted 03 Feb 2014 in reply to ewart Link to this post

    Telerik - Any idea why this issue is occurring for us now?

    Version: 2011.3.1115.40
    IIS: 7.5

    Issue is only happening intermittently on our Production server, and cannot be duplicated on any of our test environments. 
  18. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 06 Feb 2014 Link to this post

    Hi,

    Try to update your project with newer version. You may download a trial version for tests.

    Regards,
    Hristo Valyavicharski
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
  19. Goran
    Goran avatar
    2 posts
    Member since:
    Jan 2014

    Posted 18 Feb 2014 Link to this post

    We are also experiencing this error on our production servers. Has anyone found a fix yet?

    The full error Stack Trace is attached an image to this post.

    Any help or possible resolution would be greatly appreciated.
  20. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 20 Feb 2014 Link to this post

    Hi Goran,

    What version do you use? Please attach sample, which reproduces the problem. Include detailed steps to reproduce. If your sample exceeds the maximum allowed file size use DropBox, OneDrive, Google drive.

    Thanks.

    Regards,
    Hristo Valyavicharski
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
  21. Erik Stadler
    Erik Stadler avatar
    11 posts
    Member since:
    Oct 2012

    Posted 19 Mar 2014 in reply to Hristo Valyavicharski Link to this post

    We are facing same error on our production. It is DNN 7 site with latest internal build. Curious thing is, problem is not produced on all portals. Is this may be related to SSL?
  22. NetDeveloper
    NetDeveloper avatar
    7 posts
    Member since:
    Apr 2010

    Posted 19 Mar 2014 Link to this post

    Currently, we believe we have resolved this issue by removing RadProgressManagers from all affected pages.  We are no longer experiencing the crash. 

    For those still troubleshooting the issue - we were able to correlate this problem beginning around the same time we added JQuery into our project.  Since Telerik controls also use embedded JQuery, we wondered if there was a conflict between the JQuery. 

    We determined our project could function without the ProgressManagers so we accept this solution for now. 

    If anyone else finds a solution - please let us know!
  23. Doug
    Doug avatar
    1 posts
    Member since:
    Jun 2014

    Posted 09 Jun 2014 in reply to NetDeveloper Link to this post

    We just came across this issue recently as well. I tracked it down to pages that had been converted to the new RadAsyncUpload control from the deprecated RadUpload. After converting the pages we left the old Handler and Modules for the RadUpload in the web.config. I believe that they were trying to hijack the postback when there was a RadAsyncUpload control on the page... Once we removed them it seemed to fix the issue.

    Thanks,
    Doug
  24. Veeramani
    Veeramani avatar
    1 posts
    Member since:
    Mar 2015

    Posted 30 Mar 2015 Link to this post

    I am also getting this error with DNN 6.2

    DotNetNuke.Framework.PageBase - An error has occurred while loading page.
    System.ArgumentOutOfRangeException: Non-negative number required.
    Parameter name: length
       at System.Array.CreateInstance(Type elementType, Int32 length)
       at Telerik.Web.UI.Upload.RequestParser.GetFieldBytes(Byte[] chunk, Int32 fieldStartIndex, Int32 fieldBytesCount)
       at Telerik.Web.UI.Upload.RequestParser.Parse(Byte[] chunk, Int32 validChunkBytes)
       at Telerik.Web.UI.Upload.ProgressWorkerRequest.UpdateProgress(Byte[] buffer, Int32 validBytes)
       at Telerik.Web.UI.Upload.ProgressWorkerRequest.ReadEntityBody(Byte[] buffer, Int32 size)
       at System.Web.HttpRequest.GetEntireRawContent()
       at System.Web.HttpRequest.GetMultipartContent()
       at System.Web.HttpRequest.FillInFormCollection()
       at System.Web.HttpRequest.EnsureForm()
       at System.Web.HttpRequest.get_HasForm()
       at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
       at System.Web.UI.Page.DeterminePostBackMode()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  25. Senthil
    Senthil avatar
    1 posts
    Member since:
    Jan 2015

    Posted 13 Aug 2015 in reply to Veeramani Link to this post

    HI,

     

    I am facing this same kind of issue in production.

    This issue not consistent and not able to reproduce in DEV.

    Would you please give solution for this issue/any configuration changes need to done ?

    Would you please share the solution? 

     

    Stack Trace:
    System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.ArgumentOutOfRangeException: Non-negative number required.
    Parameter name: length
       at System.Array.CreateInstance(Type elementType, Int32 length)
       at Telerik.Web.UI.Upload.RequestParser.GetFieldBytes(Byte[] chunk, Int32 fieldStartIndex, Int32 fieldBytesCount)
       at Telerik.Web.UI.Upload.RequestParser.Parse(Byte[] chunk, Int32 validChunkBytes)
       at Telerik.Web.UI.Upload.ProgressWorkerRequest.UpdateProgress(Byte[] buffer, Int32 validBytes)
       at Telerik.Web.UI.Upload.ProgressWorkerRequest.ReadEntityBody(Byte[] buffer, Int32 size)
       at System.Web.HttpRequest.GetEntireRawContent()
       at System.Web.HttpRequest.GetMultipartContent()
       at System.Web.HttpRequest.FillInFormCollection()
       at System.Web.HttpRequest.EnsureForm()
       at System.Web.HttpRequest.get_HasForm()
       at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
       at System.Web.UI.Page.DeterminePostBackMode()
       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.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

  26. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 19 Aug 2015 Link to this post

    Hi Senthil,

    Please attach sample project so we can debug your code.

    Thanks.

    Regards,
    Hristo Valyavicharski
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  27. Gregg
    Gregg avatar
    33 posts
    Member since:
    Sep 2007

    Posted 13 May Link to this post

    Hello,

    Suddenly my old apps are throwing the same error shown in the original post. Telerik.Web.UI.dll 2008.02.0723.35. Users began reporting the error last week. These apps were deployed long ago and no changes made since, so why does the error suddenly start? Is there an official solution? I don't see a definitive solution in this thread.

    Thank you.
  28. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 14 May Link to this post

    Hi Gregg,

    This version is no longer supported and ti does not support latest browser versions.


    Regards,
    Hristo Valyavicharski
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  29. Gregg
    Gregg avatar
    33 posts
    Member since:
    Sep 2007

    Posted 18 May in reply to Hristo Valyavicharski Link to this post

    Hi Hristo,

    Understood that Telerik version is no longer supported. However, a web app based on this version was working fine last year and only recently did users begin to experience this error. Suddenly, two other apps based on these controls are also throwing this error. The Telerik controls seem not to be the cause. Can you speculate specifically what the cause may be, e.g. both IE and Chrome simultaneously moved to newer versions that no longer support this Telerik version?; a Windows OS or IIS update?; other?

     

    Thank you.

  30. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 18 May Link to this post

    Gregg,

    Please open new support ticket so we can continue our discussion there. 

    Thanks.

    Regards,
    Hristo Valyavicharski
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017