title: mono, xsp2, npgsql Could not load assembly
body: <p>I am writing web service and I have two classes: </p>
  
  <pre><code>&lt;%@ WebService Language="C#" Class="CairoParts.ProductsInfoWS.ProductsInfoWS.cs" %&gt;
  
  using System;
  using System.IO;
  using System.Collections;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Web;
  using System.Web.Services;
  using System.Web.Services.Protocols;
  
  namespace CairoParts.ProductsInfoWS
  {    
      [WebService(Namespace = "http://localhost:8081/ProductsInfoWS")]     
      public class ProductsInfoWS : System.Web.Services.WebService
      {        
          [WebMethod]
          public List&lt;string&gt; ReceiveFile(byte[] bytes, string fileName, string supplier)
          {
          }
      {
  }
  </code></pre>
  
  <p>and Database.cs: </p>
  
  <pre><code>using System;
  using System.Data;
  using System.Configuration;
  using Npgsql;
  
  namespace CairoParts.ProductsInfoWS
  { 
     public class Database
      {  
      }
   }
  </code></pre>
  
  <p>When i fire xsp2 and type in browser <a href="http://localhost:8081/ProductsInfoWS.asmx" rel="nofollow noreferrer">http://localhost:8081/ProductsInfoWS.asmx</a> i get this error: </p>
  
  <p>/usr/lib/mono/2.0/gmcs.exe:22858): WARNING **: The following assembly referenced from /tmp/vadmin-temp-aspnet-0/b8083b1b/assembly/shadow/94001eba/43c949ff_d7c95745_00000001/CairoParts.ProductsInfoWS.dll could not be loaded:
       Assembly:   Npgsql    (assemblyref_index=2)
       Version:    2.0.6.0
       Public Key: 5d8b90d52f46fda7
  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/vadmin-temp-aspnet-0/b8083b1b/assembly/shadow/94001eba/43c949ff_d7c95745_00000001).</p>
  
  <p>My Npgsql.dll file is in 'bin' directory. Whats wrong...</p>