找不到可安装ISAM。在'/'Application Server的错误 [英] Could not find installable ISAM. Server Error in '/' Application
问题描述
我有一个网页访问数据库。此文件被上传在网络早。当我检查网络中同样由文件管理器,我可以看到该文件。但是,当我试图用这个语句来读取该文件
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";
这是给我的错误为找不到Instalble ISAM。
推荐答案
我遇到这个错误,我读过的这文章来回,但没有白费。
I've encountered this error, and I've read this article back and forth but no vain.
最后,我明白,麻烦的是一些与安全。所以,我的解决方案是使用本地(默认) MDW文件(微软Access工作组信息)是这样的:
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";
和使用上的code的连接:
and use the connection on code:
var conn = new OleDbConnection(strConnectionString);
这篇关于找不到可安装ISAM。在'/'Application Server的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!