Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm writing a program in C# which uses either ODBC Connection or OleDB Connection to try to connect to a local in D:\ folder containing DBF database. It works fine in development pc , but when I deploy to the client it shows following error at following code.

OleDbConnection connection = new OleDbConnection(@"Provider=vfpoledb.1;Data Source=D:\test;collating sequence = general"); connection.Open();

The code above will generate a message which says: "No error message available, result code: REGDB_E_CLASSNOTREG(0x80040154)"


I have tried following solution for the problem :
1) Check that output platform is x86.
2) Setup VFPOLEDB

Thanks in advance

Regards,

Hardik.
Posted
Comments
Richard MacCutchan 29-Jun-13 7:02am    
You would need to use your debugger to find out which class id the code is trying to access and check if that id is properly registered in your system. Did you use regsvr32 to register the DLL?
hardikshahmca9 1-Jul-13 0:27am    
Yes , I have try to register the dll. If i un-register the vfpoledb.dll , error message is different - vfpoledb.1 not found ,
Mahesh Bailwal 29-Jun-13 12:10pm    
Check this link. May help
Richard MacCutchan 1-Jul-13 3:21am    
I have edited your message to make the link clickable, easier for others to access.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900