• 0

[VB.net]Compiling vb.net/mysql program


Question

How do I compile a vb.net program that utilises Mysql Connector/Net 5.1 so that it can be run from an executable file without install on a computer without the drivers installed.

I know that you can get the executable program from the debug folder, but on running the executable program on a machine without the mysql connector drivers installed this error came up:post-262506-1234168043.jpg.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Yep.

Dll's alway must be delivered with your application if you use them in your code.

Therefore you can just select the dll or the reference in your Visual Studio-Project, and set the property "Build" to "copy to output folder".

(..or something like that. i have visual studio installed in german )

So everytime you compile your project, the dll will be copied into the output folder with the application.exe

Link to comment
Share on other sites

  • 0

For libraries outside of the reach of the standard .NET BCL (Base Class Library), and official extensions (like ASP.NET Extensions, MVC etc.), I never assume that they will be installed in the GAC.

To avoid this in future, when you include a reference to a 3rd party, set the CopyLocal property of the referenced assembly to True:

post-92970-1234209627_thumb.jpg

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.