[Mono-list] asp.net and Npgsql namespace not found

Alan Campbell alan.g.campbell at gmail.com
Sun Oct 9 10:59:29 EDT 2005


Carl,

thanks for the information.  I installed in the GAC.  I already had
"using Npgsql;" in my code.  It still has not helped.

On a similar note, for a vb.net aspx page I had to have the following lines:
<%@ import Namespace="Npgsql" %>
<%@ Assembly Name="Npgsql" %>

Do I need an equivalent "Assembly Name" line in my csharp file?

Alan.

On 10/9/05, Carl Olsen <carl at carl-olsen.com> wrote:
> That should be:
>
>      gacutil -i Npgsql.dll
>
> Microsoft word automatically capitalized the "i" for me, which is probably
> going to create a compile error.
>
> Carl
>
> -----Original Message-----
> From: mono-list-bounces at lists.ximian.com
> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Carl Olsen
> Sent: Sunday, October 09, 2005 8:46 AM
> To: 'Alan Campbell'; mono-list at lists.ximian.com
> Subject: RE: [Mono-list] asp.net and Npgsql namespace not found
>
> I installed Npgsql.dll in the Global Assembly Cache (GAC) by running the GAC
> utility, like this:
>
>      gacutil -I Npgsql.dll
>
> I also include it in the code page, like this:
>
>      using Npgsql;
>
> That should take care of it.  I believe the RMPs will install it in the GAC
> as well, but it won't hurt to install it again.
>
> Carl Olsen
> http://www.carl-olsen.com/
>
>
>
> -----Original Message-----
> From: mono-list-bounces at lists.ximian.com
> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Alan Campbell
> Sent: Sunday, October 09, 2005 7:14 AM
> To: mono-list at lists.ximian.com
> Subject: [Mono-list] asp.net and Npgsql namespace not found
>
> Hi all,
>
> I am trying to convert code from IIS/Access DB to XSP (or mono-mono) /
> PostgreSQL in Debian Sarge.  I can compile and run the Npgsql sample
> code fine.  But, I get the following error when I try and use Npgsql
> in my codebehind page.
>
> error CS0246: The type or namespace name `Npgsql' could not be found.
> Are you missing a using directive or an assembly reference?
>
> I guess I am missing something simple, but i could not find a similar
> message on the list.  Browsing the archives on neotonic.com appear to
> be broken.
>
> Thanks
> Alan Campbell.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
> _______________________________________________
> 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