Search code examples
c#oledbsharpdevelop

C # using System.Data.OleDb problem


I have tried this on IDE SharpDevelop not on visual studio. I am using the namespace like this:

using System.Data.OleDb;

But it is showing me following error:

'Data' does not exist in the namespace 'System'(are you missing an assembly reference?)(CS0234)

Solution

  • Listen to the compiler: you're probably missing a reference to the System.Data assembly in your project. You need to add that reference using the Add Reference... dialog from the Project menu.