Results 1 to 4 of 4

Thread: Problem Running VB.net with MySql

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2009
    Posts
    16

    Problem Running VB.net with MySql

    Can I run the program on computer that has no mysql.data installed?

    Im getting this error
    Could not load file or assembly 'MySql.Data, ...


    Please Teach me how to build the program properly.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Problem Running VB.net with MySql

    Show us the code you have that isn't working

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Problem Running VB.net with MySql

    Just copy MySql.Data.dll over to the other machine along with your EXE. Go to the References page of the project properties and set the Copy Local property of that reference to True. When you build the project you'll now find that DLL in the same folder as your EXE, ready to copy over.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Sep 2009
    Posts
    16

    Re: Problem Running VB.net with MySql

    tnx jmcilhinney ill update this thread if it works for me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width