how to overcome: System.InvalidCastException: Unable to cast object of type
Hi,
For the database connectivity, we use ODP.Net. In one of the functionality we are trying to bind an array to stored procedures and have it execute for the each iteration of the array as a bulk transaction.
Not always but, 10% of the times the function has raised the following exception
System.InvalidCastException: Unable to cast object of type 'System.DateTime[]' to type 'System.IConvertible' .
Has anyone ever faced such a problem, if someone has a soltuion it would be of great help to me.
Thanks