Unity Error:InvalidCastException: Cannot cast from source type to destination type.

Error:
When I use System.Data.dll to parse an Excel table; I encountered this error:
insert image description here
Error location:
This is a problem with excel; where the error is reported: excelReader.AsDataSet();it is because of a problem with the excel format;

Solution: It can be solved by
setting the cell format in the excel table as text ;

Reference website:
Yusong MoMo cross-platform analysis Excel

Guess you like

Origin blog.csdn.net/a0_67/article/details/121222003