Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can i embedding MySQL.Data.dll to exe?
Message
From
09/01/2012 11:26:11
 
 
To
07/01/2012 06:25:57
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Database:
MySQL
Miscellaneous
Thread ID:
01532371
Message ID:
01532504
Views:
25
When I need to embed exe or dll files into the exe I found a workaround to do that:
Copy the file and rename the file extension to something else (like '.dat' or so), this will allow you to add the file in the project manager under Textfiles.

When starting the application, you can copy the files using the original file name:
STRTOFILE(FILETOSTR("MySql.Data.dat"),"MySql.Data.dll")
Of course you have to check if the file exists already and if you have write access at that moment, but that is the basic approach that I used successfully in those situations.


>Hi all,
> I use vb.net , mysql and download the ADO.NET Driver for MySQL (Connector/NET) driver, wrote the program (reference
>Mysql.data in C:\Program Files\MySQL\MySQL Connector Net 6.4.4\Assemblies\v2.0\MySql.Data.dll) , so the develop computer
>can execute, no error.
> But run to client computer display error.
> System.IO.FileNotFoundException: Can not find this file or module 'MySql.Data, Version=6.4.4.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d'
>
> How can i embedding MySQL.Data.dll to exe. thank you ~~~
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform