Unrecognized database format

Ollie90
Ollie90 used Ask the Experts™
on
added an accdb file to App_data and bind a dropdown to this access file. when trying to run the website, i get the above error. database itself opens fine. Using fw 3.5 and access 2010 (32bit) and VS 2010. Windows 7 64bit

Provider=Microsoft.ACE.OLEDB.12.0;Data Source="C:\App_Data\database.accdb";Persist Security Info=True
<asp:AccessDataSource ID="AccessDataSource" runat="server" 
        DataFile="~/App_Data/database.accdb" SelectCommand="SELECT * FROM [Accounts]">
    </asp:AccessDataSource>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented:

Author

Commented:
yes .. 32bit version
Éric MoreauSenior .Net Consultant
Top Expert 2016

Commented:
in your question, I see that you are using 64-bits!
Acronis in Gartner 2019 MQ for datacenter backup

It is an honor to be featured in Gartner 2019 Magic Quadrant for Datacenter Backup and Recovery Solutions. Gartner’s MQ sets a high standard and earning a place on their grid is a great affirmation that Acronis is delivering on our mission to protect all data, apps, and systems.

Author

Commented:
can't install 64bit version, because office is 32bit

Author

Commented:
ok .. i found out this: when i change to framework 4.0 i dont get this error .. when  compiling on 3.5 i do get this error
Commented:
i moved to OLE4.0 and mdb database.

Author

Commented:
not really solved, but i managed to avoid the issue

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial