I get a error with ADOX when compiling, and I don't know what's causing it.
Here is my code:
ADOX.Catalog cat = new ADOX.Catalog();
cat.Create("Provider=Microsoft.ACE.OLEDB.12.0;" +
"Data Source=" + db + ";" +
"Jet OLEDB:Engine Type=5");
MessageBox.Show("Created database" + db + " in current directory " + cDirectory + "\n");
The error is:
The type or namespace name 'ADOX' could not be found (are you missing a using directive or an assembly reference?
How can this error be resolved?