Link to home
Create AccountLog in
Avatar of Ollie90
Ollie90Flag for United States of America

asked on

Unrecognized database format

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

Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Avatar of Ollie90

ASKER

yes .. 32bit version
in your question, I see that you are using 64-bits!
Avatar of Ollie90

ASKER

can't install 64bit version, because office is 32bit
Avatar of Ollie90

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Ollie90
Ollie90
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Ollie90

ASKER

not really solved, but i managed to avoid the issue