REGDB_E_CLASSNOTREG(0x80040154)

G

Guest

I'm lost... This is the situation:

-Win98se client with:
Windows.Net Application (framework 1.1)
MDAC2.8
Jet 4.0 Service Pack 8 for Win98

and the following connection string:

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\archive\db\app.MDB;User
Id=admin;Password=;"

When I try to open the connection:
Dim conn As New OleDbConnection(ConnectionString)
conn.Open()

The following error occures:
REGDB_E_CLASSNOTREG(0x80040154)

It seems a class is nog registred? But what class?!

Who can help me out on this?!
 
M

Mark Ashton

What is the exception type being thrown? Do you have part of a call stack
that you can share?

If OLE DB Services is not registered, an InvalidOperationException should
have been thrown with the message of
"The .Net Data OLE DB Provider(System.Data.OleDb) requires Microsoft
Data Access Components(MDAC). Please install Microsoft Data Access
Components(MDAC) version 2.6 or later."

If the provider was not registered, an InvalidOperationException should have
been thrown with the message of
"The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local
machine."
with an inner OleDbException with the ErrrorCode = REGDB_E_CLASSNOTREG

Is the Microsoft.Jet.OLEDB.4.0 provider registered? Here are some registry
keys you can check
HKEY_CLASSES_ROOT\Microsoft.Jet.OLEDB.4.0\CLSID
with default value {dee35070-506b-11cf-b1aa-00aa00b8de95}
HKEY_CLASSES_ROOT\CLSID\{dee35070-506b-11cf-b1aa-00aa00b8de95}\InprocServer32
with default value of something like
C:\WINDOWS\system32\msjetoledb40.dll
 

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