Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Getting "Could not find installable ISAM." error while creating an Oledb connection. Please help!

C#
string[] FileN = new string[2];
                    FileN = FileUploadInput.FileName.Split('.');
                    string FileName = FileN[0].ToString() + this.Session.SessionID.ToString() + "." + FileN[1].ToString();
                    string strFilePath = @"C:\Revanth\EIDDemotions\InputFile\" + FileName;
                    string connString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + strFilePath + ";Extended Properties=\"Excel 12.0;HDR=YES;IMEX=1;\"";
                    OleDbConnection cnExcel = new OleDbConnection(connString.ToString());
cnExcel.Open();


Thanks in advance
Posted

1 solution

Read these answers : Could not find installable ISAM.[^]
 
Share this answer
 
Comments
arevant 31-Oct-14 5:41am    
@mehdi this doesn't work.. could you give the connection string
Mehdi Gholam 31-Oct-14 5:45am    
The connection string depends on your setup, so I can't.
arevant 31-Oct-14 6:53am    
The connection string is "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + strFilePath + ";Extended Properties=\"Excel 12.0;HDR=YES;IMEX=1;\""

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900