VFPOLEDB Connection object does not open in Windows service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hemantn
    New Member
    • May 2012
    • 1

    VFPOLEDB Connection object does not open in Windows service

    Hi,

    I am using windows service created in VS 2008 and
    using Connection string to connect VFP Container (DBC file) which is kept on different machine , i am specifying the below path

    Provider=VFPOLE DB.1;Data Source=//192.168.1.2/data/FolderName/my.dbc;exclusiv e=False;Collati ng Sequence=MACHIN E"
    I am Using the different machine IP address and then folder path in the string . Now this Service exe does not open the connection, it gives the error "Invalid Path or File Name"

    Could some one please help to resolve the issue

    THank you very much in advance
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Prehaps it does not support remote connections like that?
    It could just be an issue with the permissions that your service runs under.

    Connection strings for Visual FoxPro. Connect using vfpoledb, OleDbConnection, Microsoft Visual FoxPro Driver and ODBC .NET Provider.

    Says you can use an ODBC connection, try making a system connection in ODBC and then using that as your connection string?

    Comment

    Working...