[Mono-list] NPGSQL compiling errors
B R
charlatat at hotmail.com
Fri Sep 14 10:19:39 EDT 2007
adding -r:Npgsql allowed it to compile without errors. So, I made sure
npgsql was present in GAC on my test Linux machine and tried the executable
(after chmod +x). Got this error:
** (PostTest.exe:5610): WARNING **: The following assembly referenced from
/tmp/Npgsql.dll could not be loaded:
Assembly: System (assemblyref_index=1)
Version: 1.0.5000.0
Public Key: b77a5c561934e089
The assembly was not found in the Global Assembly Cache, a path listed in
the MONO_PATH environment variable, or in the location of the executing
assembly (/tmp).
** (PostTest.exe:5610): WARNING **: Could not load file or assembly 'System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one
of its dependencies.
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or
assembly 'System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' or one of its dependencies.
Anyone have any ideas? Thanks
>From: Brandon Perry <brandon at thresholdofthought.com>
>Reply-To: brandon at thresholdofthought.com
>To: B R <charlatat at hotmail.com>
>CC: mono-list at lists.ximian.com
>Subject: Re: [Mono-list] NPGSQL compiling errors
>Date: Thu, 13 Sep 2007 15:23:07 -0500
>MIME-Version: 1.0
>Received: from an-out-0708.google.com ([209.85.132.240]) by
>bay0-mc11-f11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu,
>13 Sep 2007 13:23:10 -0700
>Received: by an-out-0708.google.com with SMTP id c8so98662ana for
><charlatat at hotmail.com>; Thu, 13 Sep 2007 13:23:09 -0700 (PDT)
>Received: by 10.100.128.8 with SMTP id a8mr1503430and.1189714989615;
>Thu, 13 Sep 2007 13:23:09 -0700 (PDT)
>Received: from ?192.168.1.101? ( [76.186.156.124]) by mx.google.com
>with ESMTPS id m29sm8527137wrm.2007.09.13.13.23.08 (version=SSLv3
>cipher=RC4-MD5); Thu, 13 Sep 2007 13:23:08 -0700 (PDT)
>X-Message-Info:
>HKIYGN+H3D+QShLNGWNUtb8urlI/48fz0WaMEa4yBu+RyfrTjlCA4aE3ynsoZEQuEf2GPiKHGKQ=
>Return-Path: <brandon at thresholdofthought.com>
>References: <BAY138-F38300692C6EDEDBF509690BBC30 at phx.gbl>
>Organization: Threshold Of Thought, Inc
>X-Mailer: Evolution 2.10.1 X-OriginalArrivalTime: 13 Sep 2007 20:23:10.0338
>(UTC) FILETIME=[E7131E20:01C7F643]
>
>make sure it is in the GAC (gacutil -l | grep Npgsql). You might also
>need to do -r:Npgsql.
>
>On Thu, 2007-09-13 at 15:08 -0500, B R wrote:
> > I'm trying to use Mono to compile a C# program I'm tinkering with. I
>want to
> > test it on a Linux environment (works fine on Windows). It just connects
>to
> > a POSTGRESQL backend and returns minor information (I'm still learning
> > NPGSQL). It uses these references:
> >
> > using System;
> > using System.Data;
> > using Npgsql;
> >
> > Which compiles fine, if I use the MS.Net compiler. However, MCS gives me
> > errors. First it complained about System.Data, which I was able to fix
>using
> > the "-r:System.Data" argument upon compile time.
> >
> > Now, it complains that it can't find Npgsql. I'm wondering if the DLL
>should
> > be located somewhere specific, or if I should be compiling with an
> > additional argument. Can someone shed some light?
> >
> > Thanks
> >
> >
> > _______________________________________________
> > Mono-list maillist - Mono-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
>
More information about the Mono-list
mailing list