Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

The type or namespace name 'OleDb' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

Ask Question

Error CS0234 The type or namespace name 'OleDb' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)**

Error CS0234 The type or namespace name 'SqlBulkCopy' does not exist in the namespace 'System.Data.SqlClient' (are you missing an assembly reference?)**

when I use System.Data.OleDb.OleDbDataReader and System.Data.SqlClient.SqlBulkCopy but it works fine in visual studio 2013.

Can someone help ?

How do I use this these two references in Visual Studio 2015 ?

Please try to create a minimal reproducible example . Start with Visual Studio open with no solution. Step 2 should be creating a new project, but you need to tell us which template you're working with. Damien_The_Unbeliever Feb 3, 2016 at 8:05 If you look at the MSDN documentation for those two classes, then you'll see that they are in System.Data.dll . Make sure you have a reference to that dll in your project. crashmstr Feb 3, 2016 at 8:12 Thank you for helping me, I am developing a single page web application on asp.net5, I added that reference but it is still giving me an error message. A Mohlala Feb 3, 2016 at 13:54

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .