OleDb not registered on local machine



I have an ASP.NET web app running on my local machine (localhost). Here is
the database code:

Const DBCONNECTION As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source="
Const DATABASEPATH As String = "C:\test.mdb"

Dim objConnection As New OleDbConnection(DBCONNECTION + DATABASEPATH)
Dim objCommand As New OleDbCommand(sQuery, objConnection)
objConnection.Open()

It produces the following error:
The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local
machine.

If I put the same code into a Windows vb.net application on the same machine
it works fine. If I put the same code into an ASP.Net web app on our
Windows 2000 web server it works OK.
I just can't get it to work on my local XP machine. I also tried it on
another computer running XP and the same error occured.
Any ideas?
Thanks.


.


Loading