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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:44:14+00:00 2026-06-16T19:44:14+00:00

I have built a simple WPF application just to gain some experience with it.

  • 0

I have built a simple WPF application just to gain some experience with it.
All it does is get information from a database when a user clicks on a button.
The application works fine in my PC(using the publish option), but when I tried running it on my laptop and my friends’ PC, the app crashed as fast as the button was pressed.
I’m 99% sure it has something to do with Entity Framework, which I use to contact the database (all the the function that gets fired on the button click does is contact and retrieve info from the DB).

After looking for answers in google I found out that it may have something to do with either the .net installation in the PC, OR the project references.

However, the .net FW version is the same in my PC and my laptop, and the references were all marked as copy-local (just for testing!).

What else could cause such problem? I really have no idea anymore…

UPDATE

Using exceptions, I found out that the error I got was:
The specified store provider cannot be found in the configuration, or is not valid.

I also solved this problem by searching deeper in Google.
The solution can be found below…

Happy coding!

  • 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-06-16T19:44:15+00:00Added an answer on June 16, 2026 at 7:44 pm

    I finally solved it!

    This is how to do it:
    1) Make sure your project has a reference to MySql.Data.dll, MySql.Web.dll, MySql.Data.Entity.dll and System.Data.Entity.dll.

    2) Set all of the above to Copy-Local.

    3) Add the following lines to your App.config file:

      <system.data>
      <DbProviderFactories>
        <clear />
        <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient"
        description=".Net Framework Data Provider for MySQL"
        type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, 
        Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
      </DbProviderFactories>
    </system.data>
    

    4) Click on the MySQL.Data reference, and check it’s version. It can be found in the ‘Properties’ window below the solution explorer after you select it.

    5) Change the Version=6.4.4.0 part to the version of your MySql.Data.dll. Mine was 6.5.4.0 which is the newest but older versions should work just as fine.

    Also, I’d like to thank Ralf de Kleine and everyone else who answered for putting up/suggesting the exception code.
    It was dumb of me to not think about using exceptions when they’re just so convenient!

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

Sidebar

Related Questions

All, I have a WPF application built upon SQLite database and user/application Configuration settings.
Hi I have built a simple WCF application I am using to query data
I have built a very simple blog application using Ruby on Rails. New to
I have a simple Android application that uses a JAR I have built. When
Does Python have a built-in, simple way of encoding/decoding strings using a password? Something
I have a cakePhp application built, and now I'm creating a simple blog based
I have built a simple Android application to solve an annoying problem. Whenever you
I have built a simple GUI application in QtCreator-2.0.1 i have following files: first.pro
I have a WCF client which passes Self-Tracking Entities to a WPF application built
I have built a simple TCP server and need to compare client input with

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.