Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Languages / C#

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

5.00/5 (7 votes)
4 Feb 2012CPOL 111K  
While using Microsoft Text Driver to read CSV data to DataSet in C# in your 64 bit machine
While you are trying to read a CSV file and trying to get the data in a DataSet using Microsoft Text Driver in your 64 bit machine, you will be shown an error message as:

ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

Try the solution as I do. It worked for me:

  1. Go to IIS and Application Pools in the left menu.
  2. Click the project name in the listing.
  3. Click the Set Application Pool Defaults.
  4. In General Tab, make the Enable 32 Bit Application entry to "True"

Now it works.

License

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