Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,

I am getting error as "Could not find installable ISAM" when I am retrieving data from excel sheet(xlsx extension -Excel 2010) in asp.net web application into data table using oldeb connection string. But when I save the same sheet in excel 97-2003(xls extension) its working fine.

Connection string is

sConnection = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=" + cntrlFileUpload.PostedFile.FileName + ";Extended Properties=Excel 12.0;HDR=YES";


Note: Its working absolutely(both xlsx and xls formats) fine in Windows application.
Guide me in resolving this issue.Thanks in advance
Posted
Comments
Richard MacCutchan 1-Oct-14 4:09am    
Have you installed the ACE library on your system?
DileepReddyC 1-Oct-14 5:32am    
Hi.Yes it is installed.As I mentioned in windows application its working fine.

1 solution

Check and set proper connection string: http://www.connectionstrings.com/excel/[^]

Note: Extended Properties must be closed with " (double quote), for example:
C#
Extended Properties="Excel 8.0;HDR=YES"
 
Share this answer
 

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