Search code examples
c#oledbmonodevelop

OleDb not implemented


When running a very basic program, I get

System.NotImplementedException (OleDb is not implemented.)

My code:

using System;
using System.Data;
using System.Data.OleDb;

namespace Tests
{
    class MainClass
    {
        public static void Main(string[] args)
        {
            OleDbConnection connection = new OleDbConnection();
        }
    }
}

I have no idea what is the cause for this. I am running this program on MonoDevelop on Linux, and when I run on Visual Studio it works.

Thank you for reading, help would be appreciated. :)


Solution

  • I changed the program to the SqlConnection library like @MarcGravell had offered and it works. It seems like the problem was in MonoDevelop.