c# - Troubleshooting Could not find installable ISAM error -


i have 32-bit ms office 2013 installed, along 32-bit office redistributable , small c# console application set compile 32-bit.

the following code causes oledbexception stating "could not find installable isam."

public void getdata() {     var filename = @"c:\temp\sales database_test.accdb";     var connection = @"provider=microsoft.ace.oledb.12.0;data soure='" + filename + "'";     using (var conn = new oledbconnection(connection))     {         conn.open();         conn.close();     } } 

instead of randomly applying solutions dozen vague answers, i'd know:

  • what means?
  • what installable isam?
  • how list of them?
  • how know available?
  • finally, how know providers available on given machine?
  • is there way enumerate these things , troubleshoot?

my issue turned out aging eyes , fat fingers: "data source" misspelled "data soure".

this doesn't answer questions, may else. generated working connection string linking data in excel , copying , pasting , removing didn't need.

  1. get data access (pick table). enter image description here

  2. next open connections.

    enter image description here

  3. you can @ properties of connection , copy working connection string can paste code , edit.

    enter image description here


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -