Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO.NET - Error: E_UNEXPECTED(0x8000FFFF)

Status
Not open for further replies.

SteveShanks

Programmer
Nov 28, 2001
112
GB
Hi all

I have a vb.net 2003 app on v1.1 framework that runs on all computers except one. I get error E_UNEXPECTED(0x8000FFFF) No error information avilable when I try and open a connection to the Access 2000 database with OLEDB

e.g
-------------------------------------------
Dim dbConnection As OleDb.OleDbConnection
Dim strConnectionString As String = ""

strConnectionString= "Provider=Microsoft.Jet.OLEDB.4.0;Data Source =" & strDBpath & ";Jet OLEDB:Database Password =;"

dbConnection = New OleDbConnection(strConnectionString)

dbConnection.Open()
-------------------------------------------

Then I get the error E_UNEXPECTED(0x8000FFFF)

This code works on all other machines and I can't find asolution to it anywhere!

Any help much apprieciated

Thanks
Steve
 
What location this error appears in the code?
Have you tried with Try-Catch blocks around the code?
Is this error happens frequenly, all the time or sometimes?

Sharing the best from my side...

--Prashant--
 
Hi
The error occurs on this line
dbConnection.Open()

and happens everytime on this one particular machine, every other machine it is installed on works fine for all database access

My original code has Try-Catch blocks that catch the error ok

Thanks
Steve
 
Can you try the same by using ODBC for that machine?
Because there is no sure and perfect solution for this problem as the error is unexpected so no info is available on that part. It could be problem with Active Directory, Connection Pooling, TCP...
If you try implementing ODBC, atleast you will get some clue for it.

Sharing the best from my side...

--Prashant--
 
Thanks, I will give it a go and see what happens with ODBC

Cheers
Steve
 
An update...

It's still a problem.

I have tried the same code using ODBC and same problem. As for the direc tory permsissions, I am able to browse to that directory and copy/edit/delete files from it no problem

Any other thoughts?

I should have noted before that the first error that comes up but only once is:

REGDB_E_CLASSNOTREG(0x80040154)

Getting desperate now...

Many Thanks
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top