Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting to VFP Data in ASP.NET
Message
From
25/11/2005 13:37:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/11/2005 13:31:21
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01072118
Message ID:
01072122
Views:
36
>Hi All,
>I am trying to connect to my VFP data using OLEDB in ASP.NET
>
>
>Conn = New System.Data.OleDb.OleDbConnection("provider=VFPOLEDB.1; data source='" & MyDataSource & "'")
>Conn.Open()
>
>
>Then here's what I get:
>
>
"Non-NULL controlling IUnknown was specified, and either the requested interface was not IUnknown, or the provider does not support COM aggregation."
>

>I tried in the other server with exactly the same settings/configurations and it is ok.
>Any Idea?
>
>Thanks
>
>Jay

From an ASP this works for me just right:
    dbpath = Server.MapPath("data")
' ADO connection ...
  .ConnectionString = "Provider=VFPOLEDB;data source=" & dbpath & "\myDatabase.dbc"
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform