Length cannot be less than zero. Parameter name: length
This might appear to be weird to you as it is for me but i don't find any solution :|
It happens like this:
Go to content on template insert a macro and then save an publish. Everythinks is fine.
Reopen and save -> throws an error:
Length cannot be less than zero. 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: Length cannot be less than zero. 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.
How are you reproducing this - what browser, what content does your macro contain, etc? If reproducable maybe we can submit the code on that workitem as a pull request :)
I also encountered this annoying little critter last night. I'm using umbraco v 4.7.2 (Assembly version: 1.0.4500.21031)
After messign around with it for a while, I discovered finally this morning that if I set Render content in editor within the macro settings to No then the problem seemed to go away.
A pathetic little work around, but at least I was able to move on. Hopefully it may assist you and/or your users as well
I too had this issue last week and the only workaround I found was also to disabled rendering of macro content in the RTE. What little debugging I did leads me to believe the issue is content related (rendered content) rather than an actual bug in Umbraco.
Length cannot be less than zero. Parameter name: length
This might appear to be weird to you as it is for me but i don't find any solution :|
It happens like this:
Go to content on template insert a macro and then save an publish. Everythinks is fine.
Reopen and save -> throws an error:
Length cannot be less than zero.
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.Parameter name: length
Exception Details: System.ArgumentOutOfRangeException: Length cannot be less than zero.
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:4.0.30319; ASP.NET Version:4.0.30319.1
Hi Adrian,
I can't seem to reproduce this but it does seem to be a common issue. Here's the bug on codeplex (please vote it up). http://umbraco.codeplex.com/workitem/30620
How are you reproducing this - what browser, what content does your macro contain, etc? If reproducable maybe we can submit the code on that workitem as a pull request :)
-Tom
Hi Adrian,
I also encountered this annoying little critter last night. I'm using umbraco v 4.7.2 (Assembly version: 1.0.4500.21031)
After messign around with it for a while, I discovered finally this morning that if I set Render content in editor within the macro settings to No then the problem seemed to go away.
A pathetic little work around, but at least I was able to move on. Hopefully it may assist you and/or your users as well
Cheers,
Cameron
I too had this issue last week and the only workaround I found was also to disabled rendering of macro content in the RTE. What little debugging I did leads me to believe the issue is content related (rendered content) rather than an actual bug in Umbraco.
is working on a reply...