[Mono-list] mod_mono tell me lies

Gianluca Stella me@gianlucastella.it
Fri, 15 Oct 2004 18:25:02 +0200

i have a little problem with Apache2.0+mod_mono1.0.2.
i have published my web app build with Visual Studio (no comment, pleaze).
running, i get this error

System.IO.FileNotFoundException: File
'/home/xxxx/htdocs/bin/agfBackOffice.dll' not found.
in (unmanaged) (wrapper managed-to-native)
System.Reflection.Assembly:LoadFrom (string)
in <0x00004> (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom
in <0x001ee> System.Web.UI.TemplateParser:LoadType (string)
in <0x00081> System.Web.UI.TemplateParser:SetBaseType (string)
in <0x0014f> System.Web.UI.TemplateParser:ProcessMainAttributes
in <0x000c4> System.Web.UI.TemplateParser:AddDirective
in <0x00092> System.Web.UI.ApplicationFileParser:AddDirective

but the dll exists! oh, for goodness' sake!
idea! via shell i go in '/home/xxxx/htdocs/ [the documentroot] and run xsp.
now, browsing my app (on port 8080), in the console appear

** (/usr/local/bin/xsp.exe:18243): WARNING **: Could not find assembly
IGERSoft.WebControls, references from
/home/xxxx/htdocs/bin/agfBackOffice.dll (assemblyref_index=4)
     Major/Minor: 1,0
     Build:       1543,38583
System error: No such file or directory

right! this is the real error.
i have published the missing dll and anything runs fine.
now, why Apache+mod_mono tell me lies? it's a misconfiguration or a problem
of mod_mono?
my httpd.conf is
MonoRunXSP True
MonoExecutablePath /usr/local/bin/mono
MonoServerPath /usr/local/bin/mod-mono-server.exe
AddType application/x-asp-net .aspx .ashx .asmx .ascx .asax .config

<VirtualHost *:80>
   ServerName xxxx.monoforge.com
   ServerAdmin admin@monoforge.com
   DocumentRoot /home/xxxx/htdocs
   CustomLog /home/xxxx/logs/access_log common
   LogLevel warn
   ErrorLog /home/xxxx/logs/error_log
   ScriptAlias /cgi-bin/ /home/xxxx/cgi-bin/
   MonoApplications "/:/home/xxxx/htdocs"
   MonoUnixSocket "/home/xxxx/.mono_socket/monosock"
   MonoWapiDir "/home/xxxx/.wapi"
   <Directory /home/xxxx/htdocs>
      Order allow,deny
      Allow from all
      AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .dll

Anyone have ideas?
Thanks a lot, at least to have read this long post.

Gianluca Stella
monoForge Staff
<ad> Host your mono site on monoforge.com for free </ad>