I've been trying to open an EXCEL file through console but everytime I get the following exception:
System.Runtime.InteropServices.COMException
that the file doesn't exist or missing.Path is correct. Here is the code I get the exception:
string path = @"C:\User\Desktop\TerritoryFile.xlsx";
var file = new Excel.Application();
file.Visible = false;
var wb = file.Workbooks.Open(path);
Could it be something else apart from a wrong path