This documentation is archived and is not being maintained.

Troubleshooting Exceptions: System.ArrayTypeMismatchException

An ArrayTypeMismatchException exception is thrown when the system cannot convert the element to the type declared for the array.

Make sure the object type is convertible to the array type.

A conversion must be possible between the two types.

For more information, Visual Basic users can see Overview of Arrays in Visual Basic.