I upgraded Umbraco from 4.7.1 to Umbraco 4.11.10. Everything seems to work fine except, if I go to a start node that doesn't exist, it doesn't show the standard 404 Not Found page. Instead it shows:
StartIndex cannot be less than zero. Parameter name: startIndex
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: StartIndex cannot be less than zero. Parameter name: startIndex
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.
I removed: <notFound assembly="AutoFolders" type="NotFoundHandler" /> from the 404handlers.config – it resolved the issue, I added it back in, but placed it at the end of the config file instead of the beginning. It appears to be working fine.
I am getting this on 7.x install where there have been no updates at all over the last few days...there is no mention of the above entry in my 404 config..
StartIndex cannot be less than zero.
I upgraded Umbraco from 4.7.1 to Umbraco 4.11.10. Everything seems to work fine except, if I go to a start node that doesn't exist, it doesn't show the standard 404 Not Found page. Instead it shows:
StartIndex 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: startIndex
Exception Details: System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.
Parameter name: startIndex
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.18446
However, if I go to a subnode that doesn't exist, I get the 404 Not Found page that I would expect.
So, mydomain.com/page - StartIndex cannot be less than zero
But, mydomain.com/page/page - get standard 404 error page
Any thoughts?
Hi Jennifer
Did you go straight from 4.7 to 4.11?
And does the site contain any custom Umbraco API integration? Are there any possible 3rd party packages issue? MNTP issues?
Have you checked the /app_data/logs folder to see if the log file reveals anything?
/Jan
I have seen this before when a property type has been changed from either a string/mntp to a boolean.
As Jan says i would check the logs and see what is throwing the exception :)
This page indicated that the problem could be with Autofolders: http://stackoverflow.com/questions/20586338/startindex-cannot-be-less-than-zero-showing-instead-of-404-page
I removed: <notFound assembly="AutoFolders" type="NotFoundHandler" /> from the 404handlers.config – it resolved the issue, I added it back in, but placed it at the end of the config file instead of the beginning. It appears to be working fine.
Hi Jennifer
Thanks for sharing - Happy that you managed to figure it out :)
Cheers, Jan
Thanks Jennifer good to know :)
I am getting this on 7.x install where there have been no updates at all over the last few days...there is no mention of the above entry in my 404 config..
Got this error in Umbraco 11 when my page didn't have a template assigned.
Did you find a solution ? Getting the same error in 11
I just set a template to my page
is working on a reply...