Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7729249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:55:15+00:00 2026-06-01T05:55:15+00:00

This is the connection string I am using. string connection = Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\CULVERT2.DBF;Extended Properties=dBASE

  • 0

This is the connection string I am using.

string connection = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\CULVERT2.DBF;Extended Properties=dBASE IV;";

The error I am receiving is C:\CULVERT2.DBF' is not a valid path.

Using C# and .NET 4

Why is it not seeing the file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T05:55:17+00:00Added an answer on June 1, 2026 at 5:55 am

    You may need quotes around the Data Source attribute as well as around the Extended Properties:

    string connection = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\"C:\\CULVERT2.DBF\";Extended Properties=\"dBASE IV;\"";
    

    Also, you may want to verify that the file is named exactly as you have it, and that you have permissions to the file 😉

    UPDATE:

    You need to specify only the folder, not the filename as per http://social.msdn.microsoft.com/Forums/en/csharpgeneral/thread/7a3f7bc0-a5c5-45ee-a488-fc262e795ec6. In your case that would be just C:\

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this connection string to access excel(2007,2010) files oleConnection.ConnectionString = @Provider=Microsoft.ACE.OLEDB.12.0;Data Source= +
I am using OleDB to connect to an excel file using this connection string
I'm using this code to read the connection string from my app.config file but
I have a connection string like this: SERVER=localhost;DATABASE=tree;UID=root;PASSWORD=branch;Min Pool Size = 0;Max Pool Size=200
This is driving me nuts. I think it is because of some connection string
So, as described on this msdn page , when you define a Connection String
I am using C# and OleDb to read data from an excel 2007 file.
I'm using .net4.0 and c# language. In my code i have a connection string
Actually i am using the Microsoft OLE DB Provider for SQL Server with ADO,
I want to use this line of code: using (ADataContext _dc = new ADataContext(ConnectionString),

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.