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

后端 未结 1 776
小蘑菇
小蘑菇 2020-12-12 00:20

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

相关标签:
1条回答
  • 2020-12-12 01:24

    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);
    
    0 讨论(0)
提交回复
热议问题