Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 28th, 2004, 04:28 PM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data link error

I try to connect to an access database using the OleDbDataAdapter wizard.
I choose the Microsoft jet 4.0 provider and
when i test my connection i receive the following message:
"Test connection failed because of an error in initializing provider.Class not registered"
How can i solve this?
Could i use another provider and who?

 
Old December 29th, 2004, 08:28 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Following is a typical ADO.Net connection string to a MS Access database file (It works):
[Note: Change H:\MSAccess\db1.mdb to your own mdb file]

Provider=Microsoft.Jet.OLEDB.4.0;Password="";User ID=Admin;Data Source=H:\MSAccess\db1.mdb;Mode=Share Deny None;Extended Properties="";Jet OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDB:Database Password="";Jet OLEDB:Engine Type=5;Jet OLEDB:Database Locking Mode=1;Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database Password="";Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False

 
Old December 29th, 2004, 04:52 PM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried and I received the following message when I clicked F5:
An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in system.data.dll

Additional information: No error information available: REGDB_E_CLASSNOTREG(0x80040154).


 
Old December 30th, 2004, 02:47 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It seems that this OLE driver dlls are not properly registered.
Have you tried re-installing .Net ?


 
Old December 30th, 2004, 03:42 PM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

First of all,
Thank you for your time and advises.
Second,
I tried re-installing but nothing change.I don't Know if this OLE driver dlls are part of .net or part of windows(xp).Also i have installed office 2003. Could it be a compatibility problem?
Quote:
quote:Originally posted by luai
 It seems that this OLE driver dlls are not properly registered.
Have you tried re-installing .Net ?







Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting data from link tables psnow1985 SQL Server ASP 0 March 27th, 2008 03:19 PM
Why does it show Link error 2001? Jams Visual C++ 2 July 10th, 2007 05:15 AM
Ex7_12 Getting a LINK Error ShawnStovall BOOK: Ivor Horton's Beginning Visual C++ 2005 1 June 29th, 2007 12:55 PM
Problems with the Data Link Properties Dialog Box macupryk VS.NET 2002/2003 0 September 23rd, 2005 07:05 PM
Help me with VB data link nnthanh VB Databases Basics 1 July 30th, 2004 08:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.