Re: Npgsql no conecta a postgres

"Juan C. Olivares" <[email protected]>
Newsgroups gmane.comp.gnome.mono.hispano
Message-ID <[email protected]>
¿Estás usando "using Npgsql"? También puedes usar el FQN:
Npgsql.NpgsqlConnection.

Atte,
JCO

On Tue, Apr 8, 2008 at 6:37 AM, alsega <[email protected]> wrote:

> Tengo el siguiente inconveniente:
> tengo instalado la version de mono 1.9-5 (utilice el instalador de la
> pagina mono), sobre un linux debian lenny.
>
> el servidor web xsp2 me funciona bien, pero cuando utilizo en mis
> archivos conexiones a postgresql estos me generan un error:
>
> Compiler Error
> Message: /opt/mono19/lib/xsp/test/asp/conexion.aspx(10,9) : error
> CS0246: The type or namespace name `NpgsqlConnection' could not be
> found. Are you missing a using directive or an assembly reference?
>
> les doy un ejemplo de la cabecera que estoy utilizando en mis archivos:
>
> <%@ Page Language="C#" %>
> <%@ Assembly name="System" %>
> <%@ Assembly name="System.Data" %>
> <%@ Assembly name="Npgsql" %>
>
> estas lineas anteriores son las que incluyo para poder utiizar Npgsql.
> En versiones anteriores de mono, si me habia funcionado, y lo unico que
> habia hecho era modificar el archivo:  web.config, agregando la linea:
> <add assembly="Npgsql" />
> Esta vez tambien he probado esta solución pero me sigue generando el
> mismo error, asi como agregar una carpeta bin con el archivo Npgsql.dll
> en la carpeta de mi aplicacion.
>
> Si alguien tiene conocimiento y experiencia en este error me podria
> colaborar, gracias.
>
> Alexis Moreno Morales
> Colombia
>
>
>
> _______________________________________________
> Mono-hispano mailing list
> [email protected]
> https://listas.hispalinux.es/mailman/listinfo/mono-hispano
>



-- 
Atte,
Juan Cristóbal Olivares

_______________________________________________
Mono-hispano mailing list
[email protected]
https://listas.hispalinux.es/mailman/listinfo/mono-hispano
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.