I can\'t seem to read a .csv file using the following connection string:
var fileName = string.Format(\"{0}{1}\", AppDomain.CurrentDomain.BaseDirectory, \"Up
I had the same problem a few weeks ago trying to do some Office 2007 automation and spent too much time trying to fix it.
string connectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + fileName + ";Extended Properties=\"Excel 12.0;HDR=YES;IMEX=1;\"";