Connection to a Visual FoxPro DBF file using Web.Config

Discussion in 'Databases' started by Davem7714, Sep 20, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I have put my web-site together and everything works fine when working on my computer. I have one page that works with a Visual FoxPro table (dbf). In my web.config file, the only way to get it to find the table is to put in the complete path to the file. The file on my site is located in the App_Data folder off of the root of my web-site. Here is the connection string that works on my local computer when running under Visual Web Developer:

    <connectionStrings>
    <add name="ADAInfoConnectionString"
    connectionString="Provider=VFPOLEDB.1;Data Source='C:\Users\David\Documents\Visual Studio 2005\WebSites\Damar\App_Data\adasurvey.dbf'"
    providerName="System.Data.OleDb" />
    </connectionStrings>

    How can I get my ASP.Net application to find this table on my web-site?

    Any help would be much appreciated.

    Thanks!

    Dave :)
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    I have not used vfp before but I think you simply need to update the path to point to the server location. You can find the root path to your site in the account setting and information sectio int he control panel.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Bruce,


    It's not so much a VFP issue as it is the path to the table. Nothing seems to work in my web.config file.


    Dave :)
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page