<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
If you put the Npgsql.dll in the bin directory of your service it
should also find it.<br>
<br>
<br>
<br>
Daniel Morgan wrote:
<blockquote
 cite="mid20060823143732.75107.qmail@web30806.mail.mud.yahoo.com"
 type="cite">
  <pre wrap="">Just a guess.  Maybe you need an assembly tag at the
top of your index.aspx

--- Eduardo Sanchez <a class="moz-txt-link-rfc2396E" href="mailto:ejsanchez@gmail.com">&lt;ejsanchez@gmail.com&gt;</a> wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi!,
 I'm testing mono+pgsql with xsp2, but keep getting
the error:

"The type or namespace `Npgsql' could not be found"

I'm using CodeFile atribute in my index.aspx file:

&lt;%@ Page language="C#" CodeFile="index.aspx.cs"
Inherits="index_aspx"%&gt;

My index.aspx.cs has the following:
// created on 8/20/2006 at 6:38 PM
using System;
using System.Web;
using System.Data;
using Npgsql;

public partial class index_aspx : System.Web.UI.Page
{
                public void OnLoad(EventArgs e)
                {
                        DisplayEmployees();
                }

                public void DisplayEmployees()
                {
                        string connectionString=
                                       
"Server=localhost;"
          +
                                       
"Database=&lt;my_database&gt;;"        +
                                        "User
ID=&lt;my_user&gt;"                   +
                                       
"Password=&lt;my_passwd&gt;;";

                        NpgsqlConnection conn=new
NpgsqlConnection(connectionString);
                        conn.Open();
                        NpgsqlCommand command=new
NpgsqlCommand("SELECT * FROM rh_empleados",conn);
                        NpgsqlDataReader
dr=command.ExecuteReader();
                        while(dr.Read())
                        {
                               
Response.Write(dr[0]+ "\t");
                               
Response.Write(dr[1]+ " " +dr[2]+ "\t\n");
                        }
                        conn.Close();
                }
}

already installed the npgsql provider in the gac and
tested it with a
Console application that seems to work without any
problem.

I'm using the xsp2.exe  version 1.1.16.1
Thanks in advance for any hint...

regards,

--
eduardo s.m.
_______________________________________________
Mono-list maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
<a class="moz-txt-link-freetext" href="http://mail.yahoo.com">http://mail.yahoo.com</a> 
_______________________________________________
Mono-list maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:Mono-list@lists.ximian.com">Mono-list@lists.ximian.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ximian.com/mailman/listinfo/mono-list">http://lists.ximian.com/mailman/listinfo/mono-list</a>
  </pre>
</blockquote>
<br>
</body>
</html>