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:
|
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
28 Answers, 1 is accepted
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:
|
For me it is happening in a RadWindow with RadAjaxManager, and only occurs in integrated mode.
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
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.
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.
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
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.
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
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.
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.
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;
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.
cheers
ewart
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.
Try to update your project with newer version. You may download a trial version for tests.
Regards,
Hristo Valyavicharski
Telerik
The full error Stack Trace is attached an image to this post.
Any help or possible resolution would be greatly appreciated.
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
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!
Thanks,
Doug
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)
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)
Please attach sample project so we can debug your code.
Thanks.
Regards,
Hristo Valyavicharski
Telerik
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.
This version is no longer supported and ti does not support latest browser versions.
Regards,
Hristo Valyavicharski
Telerik
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.
Please open new support ticket so we can continue our discussion there.
Thanks.
Regards,
Hristo Valyavicharski
Telerik