Troubleshooting Exceptions: System.RankException
A RankException exception is thrown when an array with the wrong number of dimensions is passed to a method.
Associated Tips
Make sure your array has the required number of dimensions.
For more information, Visual Basic users can see Multidimensional Arrays in Visual Basic.For more information, C# users can see Arrays (C# Programming Guide).
Remarks
Since array subscripts start at 0, the lowest available subscript for every dimension is always 0.
See Also
Tasks
How to: Find Out More About an Exception with the Exception Assistant
Reference
Visual J# Exception Handling for the Debugger
Visual J# Exception Hierarchies
RankException