Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > FoxPro OLEDB Error "Invalid Path or Filename"

Reply
Thread Tools

FoxPro OLEDB Error "Invalid Path or Filename"

 
 
ninel ninel is offline
Junior Member
Join Date: Aug 2007
Posts: 2
 
      03-05-2008
I have a foxpro free dbf table sitting on my C drive. I am trying to insert records using the OLEDB provider to connect to Foxpro. This works if the dbf is on my C drive. When I change the connectionstring to a different server I get the invalid path or filename error.

Here is my code:
Code:
        Dim objFoxProConn As OleDbConnection
        Dim FoxProConnString As String
        Dim sVfp As String

        FoxProConnString = "Provider=vfpoledb.1;Data Source=\\ITITPAFS02.ititpa.itic\pds\voicenet\system\;Collating Sequence=general;Exclusive=No;"
        
        objFoxProConn = New OleDb.OleDbConnection(FoxProConnString)
        objFoxProConn.Open()

        sVfp = "INSERT INTO agentusr(agentid, login, last, first, socsec, phone, address, city, state, zip,notes,otherid,disabled,verifier) "
        sVfp = sVfp & " VALUES(66100,'TEST','TEST','NEL','034554354','813-834-3045','123 Main street','Tampa','FL','34638','', '',.F.,.F.)"
       
        Dim oCmdTAMPA As New OleDbCommand(sVfp, objFoxProConn)
        oCmdTAMPA.ExecuteNonQuery()
What am I doing wrong??
Please help.

Thanks,
Ninel
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET & Foxpro OLEDB ninel ASP .Net 0 03-06-2008 03:41 PM
Drag n drop FoxPro table to create XSD file - error message alex9128 ASP .Net 1 09-08-2005 03:39 PM
Error in OLEDB Transaction Eitan ASP .Net 4 04-10-2005 02:56 AM
FoxPro OleDb Problem on Windows 2003 Jan Smazinka ASP .Net 0 11-28-2003 12:42 PM
Visual FoxPro OleDB Driver in ASP.NET Jan Smazinka ASP .Net 0 11-28-2003 09:29 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57