System.Runtime.InteropServices.COMException was unhandled
Message="Old format or invalid type library. (Exception from HRESULT: 0x80028018 (TYPE_E_INVDATAREAD))"
Source="Interop.Excel"
ErrorCode=-2147319784
StackTrace:
at Excel.ApplicationClass.set_DisplayAlerts(Boolean RHS)
at AutomationExcel.ExcelReader.Open(String FilePath, String WorksheetName) in D:\projets\excel\AutomationExcelSolution\AutomationExcel\ExcelReader.cs:line 258
at AutomationExcel.ExcelReader.Open(String FilePath) in D:\projets\excel\AutomationExcelSolution\AutomationExcel\ExcelReader.cs:line 244
at AutomationExcelTest.Program.Main(String[] args) in D:\projets\excel\AutomationExcelSolution\AutomationExcelTest\Program.cs:line 15
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Partager