Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / September 2006

Tip: Looking for answers? Try searching our database.

DataView Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Krishna - 19 Sep 2006 10:56 GMT
Hi,
  I am krishna,software developer in KISOFT, chennai,india.I developed one
application using visual studio 2005.I am using Dataview object in my
application.it's working properly in offline but the online application
display the following error

System.ArgumentOutOfRangeException: Index was out of range. Must be
non-negative and less than the size of the collection.
Parameter name: index

how to solve the issue?
Anybody pls help me
Regards
T.A.Krishna
Cowboy (Gregory A. Beamer) - 19 Sep 2006 13:00 GMT
This means you have a line of code somewhere that is asking for item Y out
of a group of items that only has X items. Start up the project in debug and
set breakpoints. Step through until you hit the error. It will be a line
similar to this:

object o = groupofObjects(y);

Find out how big the array is and you will see the issue.

A common reason is start with object #1 as 1 instead of 0 (ordinal versus
cardinal basis). When you try to grab object #10 as 10, it blows up.

Signature

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************

> Hi,
>   I am krishna,software developer in KISOFT, chennai,india.I developed one
[quoted text clipped - 10 lines]
> Regards
> T.A.Krishna

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.