More Group Sites
Education Books
School Rankings
Jobless Net
Better Home
Enviro++
更好教育论坛
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Share
Options
View
Go to last post Go to first unread
hong  
#1 Posted : Sunday, April 12, 2009 3:32:23 AM(UTC)
hong

Rank: Administration

Reputation:

Groups: AcademicCoachingSchool, admin, Administration, BookSeller, CatholicSchool, CoachingAdult, CoachingProfessional, CoachingSports, ExtraCurriculumCoaching, IndependentSchool, Moderator, MusicTeacher, PrivateSchool, PublicSchool, SelectiveSchool, tutor
Joined: 11/23/2008(UTC)
Posts: 522

Index (zero based) must be greater than or equal to zero and less than the size of the argument list

The problem can be hard to locate, see the following code:
Code:
String.Format("Command {0} failed - {1} - Reason: {3}", arg0, arg1, arg2);

where the index {3} is greater than the size of the argument list as it is zero based.

To correct the error, simply change {3} to {2}:
Code:
String.Format("Command {0} failed - {1} - Reason: {2}", arg0, arg1, arg2);


Sponsor
Rss Feed  Atom Feed
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.