Hi,
I am still experiencing the same issue as described by rosshew. It
seems your prescribed fix to explicitly set the database engine to Ace
has worked for rosshew, however sadly for me I am still in the same
situation :(
Please allow me to clarify:-
- I am using LinqToExcel x64 Version 1.6.2 (obtained via NuGet).
- I am building to x64 target platform.
- I am running a website on Windows Server 2008 x64 (actually a
Windows Azure, web role).
- I have installed the 64-bit version of the Access Database Engine
from '
http://download.microsoft.com/download/2/4/3/24375141-E08D-4803-
AB0E-10F2E3A07AAA/AccessDatabaseEngine_x64.exe'.
- I am explicitly setting the DatabaseEngine in code to
DatabaseEngine.Ace.
The problem I am experiencing is:-
I am able to successfully query an uploaded .xlsx file, however when I
attempt to query an uploaded .xls (Excel 97-2003) file, I receive the
dreaded 'The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on
the local
machine.' exception.
However, If I set the "Enable 32-bit Applications" setting in IIS to
"true" (against my web role's application pool), then I am able to
successfully query an uploaded ".xls" file, HOWEVER when I then
attempt to query an uploaded ".xlsx" file, I receive this exception:-
The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local
machine.
So, I am currently stuck between a rock and a hard place :)
Ideally, I would like to run my site in full 64-bit mode and be able
to query both .xlsx files and .xls files.
Any insights would be greatly appreciated!
Thanks
Simon
On Apr 26, 8:13 am,
rosshew...@gmail.com wrote:
> Thank Paul, working like a charm on x64 now.
> I'm relieved that there was a missing step in the documentation; I
> was beginning to feel like an idiot, not being able to get things to work.
>
> *LinqToExcel = Awesome*
>
>
>
>
>
>
>
> On Wednesday, 25 April 2012 16:49:08 UTC+1, Paul wrote:
>
> > Oh, I forgot to mention that you will need to set the DatabaseEngine
> > property to DatabaseEngine.Ace.
>
> > var excel = new ExcelQueryFactory("excelFileName");
> > excel.DatabaseEngine = DatabaseEngine.Ace;
>
> > I updated the documentation to reflect this.
>
> > Thanks,
> > Paul
>
> > On Wed, Apr 25, 2012 at 9:54 AM, wrote:
>
> >> Hi,
>
> >> I am
>
> >> - using LinqToExcel x64 Version 1.6.2
> >> - building to x64 target platform
> >> - running site on windows server 2003 x64
> >> - installed the 64 bit version of the Access Database Engine<
http://www.microsoft.com/downloads/info.aspx?na=41&srcfamilyid=c06b83...>
>
> >> Despite all of the above, I still get the following error:
>
> >> *The 'Microsoft.Jet.OLEDB.4.0' provider is not registered on the local
> >> machine.*