I try to read my Exel file from code and received System.InvalidCastException:
System.InvalidCastException
Additional information: Unable to cast COM object of type \'System.__Co
Seems like you are using
Microsoft.Office.Tools.Excel.Worksheet
instead of
Microsoft.Office.Interop.Excel.Worksheet
which is why you are getting an invalid cast exception.