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




Not so long ago when I was very tired I wrote an SQL-query in my C# application in Visual Studio, but I got error on build. The error was " Index (zero based) must be greater than or equal to zero and less than the size of the argument list.". Error string was this:

 

If I wasn’t tired I couldn’t even write so, but here I have just forgotten to write {3} value.

 

So this post is for all tired developers.



MarkiMarta.com. Notes of web-specialist
Since 2009
18+
Correct way to delete all SPListItems

Today while coding a Sharepoint timer job I needed to clean my SPList. I tried common ways of deleting using...

Close