473,486 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Asp + Access HELP !

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
Nov 18 '05 #1
2 1435
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

"Eiffla" <ei******@wp.pl> wrote in message
news:ch**********@atlantis.news.tpi.pl...
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

Nov 18 '05 #2
Yes !! Yes .... :D
Now everything work
Thanks :D

Użytkownik "Jason Richmeier" <js*********@cox.net> napisał w wiadomo¶ci
news:eBQ_c.40366$wu.30678@okepread04...
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

"Eiffla" <ei******@wp.pl> wrote in message
news:ch**********@atlantis.news.tpi.pl...
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


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

63
5820
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
13
2887
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
1
4317
by: Dave | last post by:
Hello NG, Regarding access-declarations and member using-declarations as used to change the access level of an inherited base member... Two things need to be considered when determining an...
13
13309
by: Simon Bailey | last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have a very simplified knowledge of databases overall. I would very much appreciate a (simplifed) message explaining the advantages...
0
2939
by: Frederick Noronha \(FN\) | last post by:
---------- Forwarded message ---------- Solutions to Everyday User Interface and Programming Problems O'Reilly Releases "Access Cookbook, Second Edition" Sebastopol, CA--Neither reference book...
20
3290
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
64
5136
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
1
3300
by: com | last post by:
Extreme Web Reports 2005 - Soft30.com The wizard scans the specified MS Access database and records information such as report names, parameters and subqueries. ......
17
4382
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
37
5179
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
0
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7173
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7305
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5427
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4863
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.