title: Mono's XSP webserver can't find MySql.Web.dll on Linux
body: <p>I'm working on getting my ASP.Net project working on Linux. I've been testing my code using XSP on windows, but now I am trying to make sure that I can develop and test on Linux as well. To that end I've gotten Ubuntu running and have MonoDevelop and MySQL running. I've downloaded the latest MySQL Connector/Net and I think I have it installed correctly. </p>
  
  <p>There is no package that will automatically install the MySQL Connector/Net for distribution so I downloaded the 6.2.3 zip file from the MySQL website. Now I've already discovered the issue with case sensitivity because the zip file contains filenames in lowercase, and Mono expects them in uppercase. So I've changed the names of the files to MySql.Data.dll, and MySql.Web.dll respectively. I've also used gacutil to install both files to the GAC. Likewise I have added the files to the Mono Lib directory. The following files do exist on my machine:</p>
  
  <pre><code>/usr/lib/mono/gac/MySql.Data/6.2.3.0__c5687fc88969c44d/MySql.Data.dll
  /usr/lib/mono/gac/MySql.Web/6.2.3.0__c5687fc88969c44d/MySql.Web.dll
  /usr/lib/mono/2.0/MySql.Data.dll
  /usr/lib/mono/2.0/MySql.Web.dll
  </code></pre>
  
  <p>I've also created package files so that I can add references to the the assemblies in MonoDevelop. The folder /usr/lib/mono/2.0 contains two .pc files that I added.</p>
  
  <p>MySql.Web.pc:</p>
  
  <pre><code>Name: MySql.Web
  Description: ASP Membership, Role and Profile providers powered by MySQL
  Version: 6.2.3
  Libs: -r:/usr/lib/mono/gac/MySql.Web/6.2.3.0__c5687fc88969c44d/MySql.Web.dll
  </code></pre>
  
  <p>MySql.Data.pc:</p>
  
  <pre><code>Name: MySql.Data
  Description: Provides connectivity to MySQL databases
  Version: 6.2.3
  Libs: -r:/usr/lib/mono/gac/MySql.Data/6.2.3.0__c5687fc88969c44d/MySql.Data.dll
  </code></pre>
  
  <p>At this point I can use the assemblies in projects inside MonoDevelop. The Assemblies appear in the list of available assemblies when I edit the project references. The project now compiles without error inside MonoDevelop. However when I run the compiled web project in XSP the following error is displayed in the browser:</p>
  
  <p>System.IO.FileNotFoundException: Could not load file or assembly 'MySql.Web.dll, Version=6.2.3.0, Culture=neutral, PublicKeyToken=C5687FC88969C44D' or one of its dependencies. The system cannot find the file specified.</p>
  
  <p>What is fustrating is that originally the error was that it could not load MySql.<strong>Data</strong>.dll and now the error message is that it can not load MySql.<strong>Web</strong>.dll. Which means that I somehow fixed the problem I was having with the Data dll, and now I have the problem with the Web dll. I have gone and re-done I learned to fix the problem for the Data dll, but I am unable to get the Web dll working. </p>
  
  <p>Unfortunately I'm still pretty new to Linux and Mono (but not to ASP.Net) and I've run out of things to try. Likewise I haven't found anything on Google to try other than what has been described above which leaves me asking for help.</p>
  
  <p>Can anyone help me find out why XSP can't find the assembly and what I can do about it?</p>
  
  <p>Thanks,
  -Will</p>