Having trouble registering mysql.data.dll with gac

View: New views
7 Messages — Rating Filter:   Alert me  

Having trouble registering mysql.data.dll with gac

by steflik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying to get Mono 2.0.2 running on FC9 . I downloaded the MySQL Connector/.NET  (v 5.2.7) and unpacked it and register it with gacutil  (gacutil -i mysql.data.dll  (from the directory where the dll is).

I tried a test .aspx page but it said it couldn't find the assembly MySql.Data. I looked in /usr/lib/mono/gac the MySql.Data directory is there and has the 5.0.7.0__c5687fc88969c44d directory and inside of it is the mysql.data.dll.  

But, when I do gacutil -l   it doesn't show the MySql.Data assembly.  

What am I missing?

Dick Steflik
Binghamton University

Re: Having trouble registering mysql.data.dll with gac

by Luckyrat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


steflik wrote:
I'm trying to get Mono 2.0.2 running on FC9 . I downloaded the MySQL Connector/.NET  (v 5.2.7) and unpacked it and register it with gacutil  (gacutil -i mysql.data.dll  (from the directory where the dll is).
I can't help directly but thought it worth mentioning that it's not always necessary to add the MySQL DLL to the GAC. We deploy our website to a Mono 2.4.2.3 server using a Microsoft Web Deployment project which automatically places the MySQL DLL into the bin directory of the website and this works perfectly. I suspect that a similar trick would work for WinForms applications too.

Chris

Re: Having trouble registering mysql.data.dll with gac

by steflik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I've tried putting the dll into the /bin directory of the application and that doesn't seem to help.

- Dick Steflik


Re: Having trouble registering mysql.data.dll with gac

by Luckyrat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


steflik wrote:
I've tried putting the dll into the /bin directory of the application and that doesn't seem to help.
Is the application built against the same version of the MySQL connector as the one you are putting into the bin directory and/or GAC? Even a minor build number difference will stop it from working.

Chris

Re: Having trouble registering mysql.data.dll with gac

by steflik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Yup, same one. There is only one on the machine.

- Dick Steflik

Re: Having trouble registering mysql.data.dll with gac

by pmarattil :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try this
mv mysql.data.dll MySql.Data.dll
/usr/local/bin/gacutil -i MySql.Data.dll

Check out details here
http://www.natsun.net/howto.html#mono

Re: Having trouble registering mysql.data.dll with gac

by steflik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


When I first read your append I thought, "it can't be that simple", well hose me down and wash me up "It Worked"  You get my vote for "Smartest Person of the Year".

Thanks, now my class can start on their next assignment and I don't have to revert to actually using that Wondoze Server in my office.

Dick Steflik
Binghamton University