Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<pre><code><small><big></big></small></code>
getting an error like -


Error 1 The type or namespace name 'DataTable' could not be found (are you missing a using directive or an assembly reference?) C:\Users\igupta\Documents\Visual Studio 2013\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs 108 17 Import_2_CRM_Console

What I have tried:

References - with .Net 4.5.2 level class

1. Accessibility
2. Microsoft.CSharp
3. Microsoft.Xrm.Sdk
4. System
5. System.Core
6. System.Data
7. System.ServiceModel
8. System.Xaml
9. System.Xml
10. System.Xml.Linq
Posted
Updated 19-Jul-18 20:59pm

1 solution

The DataTable class is in the System.Data namespace, add a reference to it at the top of your code:
C#
using System.Data;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900