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!