I need to programmatically read Microsoft Excel file from a specific path. The following code results in an error message I have never seen before
string sConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;" + "Data Source=" + Server.MapPath("Book1.xls") + ";" + "Extended Properties=Excel 12.0 Xml;HDR=Yes";
OleDbConnection con = new OleDbConnection(sConnectionString);
con.Open();
While opening the connection, the following error message is shown:
Could not find installable ISAM.
Does anybody have a solution related to this error? I would appreciate your help in this.