This is a migrated thread and some comments may be shown as answers.

Non-negative number required.

28 Answers 904 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Alex Hughes
Top achievements
Rank 1
Alex Hughes asked on 30 Jul 2008, 12:08 PM
  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

28 Answers, 1 is accepted

Sort by
0
ewart
Top achievements
Rank 1
answered on 30 Jul 2008, 11:25 PM
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
0
Michael
Top achievements
Rank 1
answered on 31 Jul 2008, 12:42 AM
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.
0
Alex Hughes
Top achievements
Rank 1
answered on 31 Jul 2008, 08:09 AM
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
0
Erjan Gavalji
Telerik team
answered on 31 Jul 2008, 11:20 AM
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.
0
Alex Hughes
Top achievements
Rank 1
answered on 31 Jul 2008, 11:52 AM
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
0
Erjan Gavalji
Telerik team
answered on 31 Jul 2008, 12:19 PM
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.
0
Larkin Young
Top achievements
Rank 2
answered on 02 Aug 2008, 02:26 PM
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.
0
ewart
Top achievements
Rank 1
answered on 03 Aug 2008, 10:27 PM
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
0
ewart
Top achievements
Rank 1
answered on 03 Aug 2008, 11:24 PM
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..

0
Veselin Vasilev
Telerik team
answered on 04 Aug 2008, 03:01 PM
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.
0
ewart
Top achievements
Rank 1
answered on 04 Aug 2008, 09:23 PM
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.
0
Erjan Gavalji
Telerik team
answered on 05 Aug 2008, 07:31 AM
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.
0
ewart
Top achievements
Rank 1
answered on 05 Aug 2008, 09:45 AM
Righto, have logged support ticket.  we're in different timezones so hopefully I won't have to wait another day for that.

cheers
ewart
0
ewart
Top achievements
Rank 1
answered on 06 Aug 2008, 02:57 AM
Got it promptly via support thanks and have implimented, problems solved and no side effects (touch wood!) observed thanks.
0
NetDeveloper
Top achievements
Rank 1
answered on 03 Feb 2014, 05:03 PM
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. 
0
Hristo Valyavicharski
Telerik team
answered on 06 Feb 2014, 04:10 PM
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.
0
Goran
Top achievements
Rank 1
answered on 18 Feb 2014, 04:56 PM
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.
0
Hristo Valyavicharski
Telerik team
answered on 20 Feb 2014, 02:51 PM
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.
0
Erik Stadler
Top achievements
Rank 1
answered on 19 Mar 2014, 02:36 PM
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?
0
NetDeveloper
Top achievements
Rank 1
answered on 19 Mar 2014, 02:49 PM
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!
0
Doug
Top achievements
Rank 1
answered on 09 Jun 2014, 02:34 PM
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
0
Veeramani
Top achievements
Rank 1
answered on 30 Mar 2015, 11:55 AM
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)
0
Senthil
Top achievements
Rank 1
answered on 13 Aug 2015, 02:27 PM

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)

0
Hristo Valyavicharski
Telerik team
answered on 19 Aug 2015, 05:20 AM
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
0
Gregg
Top achievements
Rank 1
answered on 13 May 2016, 02:17 PM
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.
0
Hristo Valyavicharski
Telerik team
answered on 14 May 2016, 09:50 AM
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.
0
Gregg
Top achievements
Rank 1
answered on 18 May 2016, 02:22 PM

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.

0
Hristo Valyavicharski
Telerik team
answered on 18 May 2016, 03:28 PM
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.
Tags
Upload (Obsolete)
Asked by
Alex Hughes
Top achievements
Rank 1
Answers by
ewart
Top achievements
Rank 1
Michael
Top achievements
Rank 1
Alex Hughes
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Larkin Young
Top achievements
Rank 2
Veselin Vasilev
Telerik team
NetDeveloper
Top achievements
Rank 1
Hristo Valyavicharski
Telerik team
Goran
Top achievements
Rank 1
Erik Stadler
Top achievements
Rank 1
Doug
Top achievements
Rank 1
Veeramani
Top achievements
Rank 1
Senthil
Top achievements
Rank 1
Gregg
Top achievements
Rank 1
Share this question
or