Search code examples
androidms-accessxamarinxamarin.formsxamarin.android

How to access oledb on android in Xamarin


Im having trouble with my connection to my microsoft access database with my Xamarin forms application. This is the code that i have to check if my connection is successfull

enter image description here

And this is the error when that code executes

enter image description here

Is it not possible to use a Microsoft Access in Xamarin Android?

Thank you for your help!


Solution

  • Oledb is old and may not supported right now as the error message mentioned.

    You can use ADO.NET framework. or SQLite-NET 3rd party library as list in this document to access the data in database.

    There are detailed steps of how to using them in the document.

    Here are some threads I searched about Oledb: How can I access Database .mdb file in Xamarin forms? and unable-to-import-oledbconnection-in-dotnet-core-entity-framework