Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6841027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:54:57+00:00 2026-05-26T23:54:57+00:00

I was trying to built a asp.net web app with the connection string defined

  • 0

I was trying to built a asp.net web app with the connection string defined in the webconfig file. When I try to debug I am getting the following exception:

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

The connection string looks like this:

connectionString=”Driver={MySQL ODBC 5.1 Driver};server=XX.XX.XX.XX;port=3306;database=db_name;user=username;pwd=pass;option=3;” providerName=”System.Data.Odbc”/>

The driver is installed and I can see it listed in the ‘ODBC Data Source Administrator’.

I tried changing the build configuration to ‘Any CPU’, still it failed.

Can somebody help me out to figure whats going on here??

Thanks,

Uday

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:54:58+00:00Added an answer on May 26, 2026 at 11:54 pm

    If you have installed the x64 version of the ODBC driver you can use it compiling the executable as default (both CPU) otherwise you have to compile the executable as x86 only and use the x86-32 driver.

    Keep in mind that by default on x64 os an application compiled as both CPU (x64 and x86) will use the 64bit version of the driver, this means that if you install the 32bit version of the ODBC driver and compile the executable as Both CPU or x64 you will get the error, so you have to compile the application only x86.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've built a multilingual ASP.NET web app and no problem . I'm trying to
I am trying to use a web service built on asp.net wcf from iPhone
I am currently trying to establish a connection between an ASP.NET web site project
I'm trying to build a planner web app using ASP.NET MVC 3. One of
I'm trying to build a multi-language web app with ASP.NET 4.0. I've created appropriate
I am trying to deploy an asp .net MVC app onto II7 and getting
I am trying to build an iPhone web application using ASP.NET. The page is
I am trying to determine whether a company has websites built with ASP.NET MVC
I have an ASP.NET MVC 3 (.NET 4) web application. This app fetches data
I have built an ASP.NET MVC 3 web application (with exlusively Razor/cshtml pages) that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.