Bon voila, j'ai un problème assez gênant quand j'essaie de me connecté a ma BD MySql je vous explique:
Je développe sur Visual C# Express 2008 avec un framework cible 2.0(compatible mono donc) et je me connecte a une bd MySql grâce a MySql.data.dll dont j'ai bien rajouté la référence.
Une fois compilé j'envoie tout ce beau monde ( le .exe et la dll) sur mon serveur web ou j'exécute mon prog, et a ce moment là j'ai le droit a un joli :
Très joli très sympa ... kernel32.dll étant un des dll majeur des noyaux windows, je me demande bien qu'es ce qu'il vien foutre ici
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 System.DllNotFoundException: kernel32.dll at (wrapper managed-to-native) MySql.Data.Common.Semaphore:CreateSemaphore (MySql.Data.Common.SECURITY_ATTRIBUTES&,int,int,string) at MySql.Data.Common.Semaphore..ctor (Int32 initialCount, Int32 maximumCount) [0x00000] at (wrapper remoting-invoke-with-check) MySql.Data.Common.Semaphore:.ctor (int,int) at MySql.Data.MySqlClient.MySqlPool..ctor (MySql.Data.MySqlClient.MySqlConnectionString settings) [0x00000] at MySql.Data.MySqlClient.MySqlPoolManager.GetPool (MySql.Data.MySqlClient.MySqlConnectionString settings) [0x00000] at MySql.Data.MySqlClient.MySqlConnection.Open () [0x00000]
J'ai même essayé de mettre kernel32.dll à la racine de l'exécutable pour voir ce que ça donné mais même levé d'exception ...
Donc voila si quelqu'un peu m'aidai je suis preneur ^^
Partager