Asp + Access HELP !

  • Thread starter Thread starter Eiffla
  • Start date Start date
E

Eiffla

I want connect to data base so I wrote this code

cn = new System.Data.OleDb.OleDbConnection();
cn.ConnectionString="Provider=Microsoft.JET.4.0.;"+ @"data source
=c:\proba.mdb";
cn.Open();
string query = "select * from users";
ds = new System.Data.DataSet();
dA = new System.Data.OleDb.OleDbDataAdapter(query,cn);
dA.Fill(ds);

I have somthing like this :

No error information available: REGDB_E_CLASSNOTREG(0x80040154).
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: No error information
available: REGDB_E_CLASSNOTREG(0x80040154)

I will by greatfull to any answer
 
I think the provider value you should be using is:

Microsoft.Jet.OLEDB.4.0 (it looks like you are missing the OLEDB)

Hope this helps.

Jason Richmeier
 
Yes !! Yes .... :D
Now everything work
Thanks :D

U¿ytkownik "Jason Richmeier said:
I think the provider value you should be using is:

Microsoft.Jet.OLEDB.4.0 (it looks like you are missing the OLEDB)

Hope this helps.

Jason Richmeier
 

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

Back
Top