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 3631424
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:23:43+00:00 2026-05-19T00:23:43+00:00

Hi, I have a ASP.NET webapplication where I use ODBCConnection to connect a MySQL

  • 0

Hi,

I have a ASP.NET webapplication where I use ODBCConnection to connect a MySQL server, it will take the connectionstring from the web.config file and this works grate.

But when I put the same code in a WPF application and hardcode the same connection string I get the followin exception when runnint ODBCConnection.Open() :

Data source name not found and no default driver specified

I have checked the ODBCConnection orbject and its instansiated with the exact same connectionstring as in the webapplication.

The connection string looks like this :

“DRIVER={MySQL ODBC 3.51 Driver};SERVER=X.X.X.X;DATABASE=X;USER=X;PASSWORD=X;OPTION=3”

The X is set to propert values

I am running both from the same computer so the MYSQL ODBC connection is installed correct.

Pleas advice.

BestRegards

  • 1 1 Answer
  • 2 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-19T00:23:44+00:00Added an answer on May 19, 2026 at 12:23 am

    The problem was resolved by changing the Building for CPU from Any to x86 on thw WPF application.

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

Sidebar

Related Questions

We use Team Foundation Server and have numerous ASP.NET Web Application Projects. Each of
I have a ASP.Net Web Application which connects to a SQL Server. The web.config
I am building an ASP.NET web application that will use SQL Server for data
In my ASP.NET WebApplication I have the following entry in my web.config: <pages controlRenderingCompatibilityVersion=3.5
I have an asp.net web application written in C# using a SQL Server 2008
I have a ASP.NET web application that use the same DataContextType to access several
I have a Asp.net web application running with the following config setting. <xhtmlConformance mode=Legacy/>
I have an ASP.NET c# web application published to a server of ours. It
I have an asp.net web application that use FormsAuthentication. Now, the application has a
We currently have an ASP.NET Web Application running on a single server. That server

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.