[MonoDevelop] Exception while trying to add a reference to
A Rafael D Teixeira
rafael.teixeirabr at terra.com.br
Mon Jul 4 14:00:00 EDT 2005
On Sun, 2005-07-03 at 10:26 +0100, James Fitzsimons wrote:
> Hi all,
> I am using:
> Monodevelop v7.0
> Mono 220.127.116.11
> I have downloaded the MySql.Data.dll provider for .NET from the MySql
> site and installed it into the GAC.
> Error while executing command: AddReference
> Exception ocurred: System.Reflection.TargetInvocationException:
> Exception has been thrown by the target of an invocation. ---
> System.IO.FileNotFoundException: Assembly 3 referenced from assembly
> MySql.Data.dll not found
You need an specific version of ICSharpCode.SharpZipLib: 0.81.0.1407.
Mono compiles a version 0.6 (or 2.6 for the 2.0 profile).
Even after that being corrected the provider may not work correctly,
because currently it P/Invokes (calls native code) into Kernel32.dll,
what is obviously non-portable to Linux/MacOS.
Class MySQl.Data.Common.Win32 wraps half-a-dozen Win APIs.
It does so to be able to use NamedPipes what is the default base
protocol for connection from the client to the MySQL server when both
are running in Windows.
Probably it may not be used in runtime outside Windows, when running a
properly configured connection, but be warned.
Hope It Helps,
Rafael "Monoman" Teixeira
Mono Hacker since 16 Jul 2001 - http://www.mono-project.com/
Mono Brasil Founding Member - http://monobrasil.softwarelivre.org/
Simios Proud Member - http://www.simios.org/
English Blog: http://monoblog.blogspot.com/
Brazilian Portuguese Blog: http://www.simios.org/blog/monoman
More information about the Monodevelop-list