Could not find installable ISAM. Server Error in '/' Application

前提是你 提交于 2019-11-27 08:18:01

问题


I have a access database in web. This file is being uploaded in the web earlier. When I checked the same in web by file manager I could see the file. But when I am trying to read this file using this statement

con.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;
    Data Source=~\httpdocs\Admin\Acessdatabase\ATT2000.mdb;
    Persist Security Info=False;
    Jet OLEDB:Database Password=; 
    providerName=System.Data.OleDb";

it is giving me error as "Cannot find Instalble ISAM".


回答1:


I've encountered this error, and I've read this article back and forth but no vain.

Finally, I've understood that the trouble is something with the security. So, my solution was to use the local (default) mdw file (Microsoft Access Workgroup Information) like this:

string strConnectionString = 
    "Provider='Microsoft.Jet.OLEDB.4.0';Data Source=" + p_strFileName +
    ";Jet OLEDB:Database Password=" + p_strDBPassword +
    ";Mode=Share Exclusive;Persist Security Info=True;";

// Important part - using mdw file
strConnectionString += "Jet OLEDB:System Database=" + 
    Environment.GetEnvironmentVariable("APPDATA") + 
    @"\Microsoft\Access\system.mdw";

and use the connection on code:

var conn = new OleDbConnection(strConnectionString);


来源:https://stackoverflow.com/questions/17941931/could-not-find-installable-isam-server-error-in-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!