-1

I know that this must have been asked but I think I have tried all the suggestions written.

I am using:

  • Win 7 x64
  • Office 2010(32 bit).
  • MSFT Access Database 2010(32 bit)
  • MSFT Office Access Database engine 2007.

My project is ANY CPU but still getting this error. Here is my connection string

"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + fileLocation + ";
  Extended Properties=\"Excel 12.0;HDR=Yes;IMEX=1\";"

I have also checked my App Pool is currently set to False for 32 bit applications.

Any ideas guys?

Sayse
  • 42,633
  • 14
  • 77
  • 146
alice7
  • 3,834
  • 14
  • 64
  • 93
  • Try installing this (there are versions for 32 and 64 bit): http://www.microsoft.com/en-us/download/details.aspx?id=13255 – Dave Ziegler Jul 09 '13 at 20:21
  • App Pool should be set to **True** for 32 bit applications. That is what was causing your error. – Tommy Dec 28 '13 at 14:25

2 Answers2

0

This MSDN page might help you.

rwisch45
  • 3,692
  • 2
  • 25
  • 36
0

I actually spent my entire day to debug but couldn't get anything working. So I started looking options and found this option "http://exceldatareader.codeplex.com/" and it worked for me.

alice7
  • 3,834
  • 14
  • 64
  • 93