Could not find file 'C:\WINDOWS\system32\dbo.mdb'.

R

relaxory

I get this error when trying to connect to my database. I have
reinstalled the JET 4.0 drivers and updates but it persists. Any ideas?

Could not find file 'C:\WINDOWS\system32\dbo.mdb'.
Microsoft JET Database Engine

My connection string :

Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\inetpub\wwwroot\mydetails\database\database.mdb;

The database is Access 2000
Other details :
(C# file)
string myConnString = ConfigurationSettings.AppSettings["dsn"];
string mySelectQuery = "SELECT UserName FROM tblSubscriberAdmin WHERE
UserName = '" + strUserName + "'";
outSelect.InnerText = mySelectQuery;
OleDbConnection myConnection = new OleDbConnection(myConnString);
OleDbCommand myCommand = new OleDbCommand(mySelectQuery,myConnection);
myConnection.Open();
OleDbDataReader myReader;
myReader = myCommand.ExecuteReader();

(web.config)
...
<add key="dsn" value="Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\inetpub\wwwroot\mydetails\database\MyDetails.mdb;"/>
...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top