View Full Version : Parameter name: length error?
SteveH
07-17-2008, 07:13 PM
Hello
I am getting the following error:
Server Error in '/' Application.
--------------------------------------------------------------------------
Length cannot be less than zero. Parameter name: length
This line is highlighted:
Line 69: _descAry = _descAry.Substring(0,_descAry.Length-1);
Can I ask what the problem is and how should I correct it?
Thanks.
Steve
demtron
07-18-2008, 12:57 AM
Are you sure that _descAry has a length > 0? I would check that first - sounds like you are getting an ArgumentOutOfRangeException.
SteveH
07-18-2008, 01:20 PM
Hello Demtron
Thanks for your reply.
I think it is a misleading error. This is what I had, as I said:
_descAry = _descAry.Substring(0,_descAry.Length-1);
_urlAry = _urlAry.Substring(0,_urlAry.Length-1);
I messed about with the values and wasn't getting anywhere.
I got this script from this tutorial:
http://www.flash-mx.com/flash/asp_newsfeed.cfm
The newsfeed works, however, apparently only with the newsfeed used in the tutorial:
http://www.macromedia.com/desdev/resources/macromedia_resources.xml
So if I use the same feed on my own server I can successfully connect:
http://stevehigham59.7host.com/Brandon/BrandonNews.html
However, once I replace the feed with my own valid one (I have verified it)
I start to get the error again that I posted about yesterday.
The feed I wish to replace the macromedia one with is:
http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/technology/rss.xml
that is, one which I have verified here:
http://validator.w3.org/feed/
Isn't it all a bit strange?
Thanks again.
Steve
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.