Results 1 to 2 of 2

Thread: connection problem with MySql

  1. #1
    Join Date
    Apr 2009
    Posts
    90

    connection problem with MySql

    I have an embarrassing problem when I try to connect to my MySql DB I will explain:
    I developed an application on Visual C # Express 2008 with a target framework 2.0 (therefore compatible mono) and I connected to MySql bd this is with the help of MySql.data.dll which I added the reference.

    When I compiled it gives me the following problem please look at it whether i have any solution on it.

    Code:
     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. MySQLConnect. Open () [0x00000]
    I even tried to kernel32.dll at the root of the executable to see what happens but even raised an exception ...

    Please help...

  2. #2
    Join Date
    Jan 2009
    Posts
    99

    Re: connection problem with MySql

    As long as you use only 2.0 of the framework classes, you are roughly compatible for Mono ... but if you use the external library and that it refers to native Windows DLL, it works more friendly. You can perhaps recover with Wine (I saw Linux running a large complex Windows application with Mono + successful).

    Otherwise,I have one doubt in my mind, what is your Client? Is the. NET connector official?

Similar Threads

  1. How to allow remote connection to MySQL
    By Gomeler in forum Software Development
    Replies: 5
    Last Post: 17-12-2009, 01:24 PM
  2. Replies: 3
    Last Post: 07-11-2009, 09:36 PM
  3. Mysql connection with java
    By Xena in forum Software Development
    Replies: 2
    Last Post: 24-04-2009, 03:16 PM
  4. MySQL: connection problem of socket
    By Bull50 in forum Software Development
    Replies: 4
    Last Post: 31-03-2009, 12:00 AM
  5. bad mySQL connection
    By Ron1 in forum Software Development
    Replies: 3
    Last Post: 12-02-2009, 12:37 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,857,584.48878 seconds with 17 queries