Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can i embedding MySQL.Data.dll to exe?
Message
 
 
À
07/01/2012 06:25:57
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Database:
MySQL
Divers
Thread ID:
01532371
Message ID:
01532504
Vues:
24
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform