Database Software: FoxPro 7
I installed the VFPOLEDB.DLL for FoxPro 8. The software vendor uses VFP 7
for their database and I want to connect to it to generate custom reports
through asp.net (vb). I tried to connect to the database and get the error
message below. I even tried to manually registering VFPOLEDB.DLL and the
register succeeded. Any ideas? I have search all day trying to find the
solution to this, so far I have had no success. Any help would be much
appreciated.
--------------------------------------------------
CONNECTION STRING:
--------------------------------------------------
Connection String: "Provider=VFPOLEDB.1;Data Source='c:\data';Collating
Sequence=general"
--------------------------------------------------
ERROR MESSAGE:
--------------------------------------------------
Server Error in '/MeetingReports' Application.
No error information available: REGDB_E_CLASSNOTREG(0x80040154).
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Data.OleDb.OleDbException: No error information
available: REGDB_E_CLASSNOTREG(0x80040154).
Source Error:
Line 73:
Line 74: '*** Fill DataSet with the current returned records ***
--> Line 75: objOleDbDataAdapter.Fill(objDataSet, DataTableName)
Line 76:
Line 77: '*** Fill DataGrid Control with DatatTable ***
Source File: c:\inetpub\wwwroot\xxx\0.aspx.vb Line: 75
Stack Trace:
[OleDbException (0x80040154): No error information available:
REGDB_E_CLASSNOTREG(0x80040154).]
[InvalidOperationException: The 'VFPOLEDB.1' provider is not registered on
the local machine.]
System.Data.OleDb.OleDbConnection.CreateProviderEr ror(Int32 hr) +81
System.Data.OleDb.OleDbConnection.CreateProvider(O leDbConnectionString
constr) +107
System.Data.OleDb.OleDbConnection.Open() +203
System.Data.Common.DbDataAdapter.QuietOpen(IDbConn ection connection,
ConnectionState& originalState) +44
System.Data.Common.DbDataAdapter.FillFromCommand(O bject data, Int32
startRecord, Int32 maxRecords, String srcTable, IDbCommand command,
CommandBehavior behavior) +304
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior
behavior) +77
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
+36
MeetingReports._0.PopulateDataGridControl(DataGrid DataGridControl,
String sqlStatement, String DataTableName) in
c:\inetpub\wwwroot\xxx\0.aspx.vb:75
xxx._0.popDataGrid(DataGrid DataGridControl) in
c:\inetpub\wwwroot\xxx\0.aspx.vb:114
xxx._0.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\xxx\0.aspx.vb:26
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +731
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:uy**************@TK2MSFTNGP15.phx.gbl...
Hi John,
You can read about the OLE DB Driver for Visual FoxPro at the following
URL:
http://msdn.microsoft.com/library/de...sualFoxPro.asp
You can get good Connection Strings from http://www.connectionstrings.com.
--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
"John Smith" <no*******@address.com> wrote in message
news:O1**************@TK2MSFTNGP10.phx.gbl... How do I connect to a FoxPro 7 database?