SystemInvalidCastExceptionUnable to cast object of type SystemString to type SystemInt32
This error occurs when you try to convert a string data type to an integer data type using the explicit conversion method. The string value may contain non-numeric characters, or it may be null or empty. To fix this error, you need to verify that the string value is a valid integer before converting it. You can use the int.TryParse method to check if the string value can be converted to an integer.
原文地址: http://www.cveoy.top/t/topic/bkX0 著作权归作者所有。请勿转载和采集!